summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGangzheng Tong <tonggangzheng@gmail.com>2025-04-07 01:09:02 -0700
committerGitHub <noreply@github.com>2025-04-07 16:09:02 +0800
commitedb7289383538c3356ca2d5f7c37f41821bbf252 (patch)
tree3ebe39fb2854d2b18ea04cf414093260640ed0e3 /CMakeLists.txt
parentce87ab925d06a784eec194081e00a1b4c9b94d0c (diff)
Use GITHUB_TOKEN for fetching prebuilt (#6712)
* Use GITHUB_TOKEN for fetching prebuilt This PR extends Commit c6b702c to use GITHUB_TOKEN if set for fetching prebuilt binaries. This allows webgpu-dawn and slang-tint to be downloaded for certain IPs where the github API rate is limited. Fixes #6689 * Don't ignore download failure if github token is provided * Update readme for getting github access token * format code * combine cmake_parse_arguments calls * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6c6b5eb93..081a40fb4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -375,6 +375,7 @@ if(SLANG_WEBGPU_DAWN_BINARY_URL)
"webgpu_dawn"
"${SLANG_WEBGPU_DAWN_BINARY_URL}"
IGNORE_FAILURE
+ SLANG_GITHUB_TOKEN ${SLANG_GITHUB_TOKEN}
)
endif()
@@ -387,6 +388,7 @@ if(SLANG_SLANG_TINT_BINARY_URL)
"slang-tint"
"${SLANG_SLANG_TINT_BINARY_URL}"
IGNORE_FAILURE
+ SLANG_GITHUB_TOKEN ${SLANG_GITHUB_TOKEN}
)
endif()