Skip to content

Commit

Permalink
ci: download zig fork from cdn instead of git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Feb 6, 2025
1 parent 5620a7d commit 97f0d5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/scripts/DownloadZig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ else()
endif()

set(ZIG_DOWNLOAD_URL https://bun-ci-assets.bun.sh/${ZIG_FILENAME})
set(ZIG_REPOSITORY_URL https://bun-ci-assets.bun.sh/${ZIG_COMMIT}.tar.gz )

execute_process(
COMMAND
Expand Down Expand Up @@ -77,10 +78,9 @@ set(ZIG_REPOSITORY_PATH ${ZIG_PATH}/repository)
execute_process(
COMMAND
${CMAKE_COMMAND}
-DGIT_PATH=${ZIG_REPOSITORY_PATH}
-DGIT_REPOSITORY=oven-sh/zig
-DGIT_COMMIT=${ZIG_COMMIT}
-P ${CMAKE_CURRENT_LIST_DIR}/GitClone.cmake
-DDOWNLOAD_URL=${ZIG_REPOSITORY_URL}
-DDOWNLOAD_PATH=${ZIG_REPOSITORY_PATH}
-P ${CMAKE_CURRENT_LIST_DIR}/DownloadUrl.cmake
ERROR_STRIP_TRAILING_WHITESPACE
ERROR_VARIABLE
ZIG_REPOSITORY_ERROR
Expand Down

0 comments on commit 97f0d5b

Please sign in to comment.