Skip to content

Commit

Permalink
ci: change how we download Zig
Browse files Browse the repository at this point in the history
The Zig maintainers have asked the community to not use the official
download URL for CI and instead use a set of mirrors in a supported
GitHub CI action.

All Zig downloads are signed and checked to ensure the mirrors used
do not mess with the download.

Signed-off-by: Ivan Velickovic <[email protected]>
  • Loading branch information
Ivan-Velickovic committed Sep 17, 2024
1 parent 0c927fe commit 103364e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ jobs:
# 'expect' is only a dependency for CI testing
run: sudo apt update && sudo apt install -y make clang lld llvm qemu-system-arm device-tree-compiler expect gcc-aarch64-linux-gnu
- name: Install Zig
run: |
wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz
tar xf zig-linux-x86_64-0.13.0.tar.xz
echo "${PWD}/zig-linux-x86_64-0.13.0/:$PATH" >> $GITHUB_PATH
uses: mlugg/[email protected]
with:
version: 0.13.0
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Build and run examples
Expand Down Expand Up @@ -77,10 +76,9 @@ jobs:
brew install llvm qemu dtc make dosfstools expect
echo "/usr/local/opt/llvm/bin:$PATH" >> $GITHUB_PATH
- name: Install Zig
run: |
wget https://ziglang.org/download/0.13.0/zig-macos-x86_64-0.13.0.tar.xz
tar xf zig-macos-x86_64-0.13.0.tar.xz
echo "${PWD}/zig-macos-x86_64-0.13.0/:$PATH" >> $GITHUB_PATH
uses: mlugg/[email protected]
with:
version: 0.13.0
- name: Install Rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Build and run examples
Expand Down

0 comments on commit 103364e

Please sign in to comment.