Skip to content

Commit 638c596

Browse files
committed
chore: use mlugg/setup-zig action for cleaner CI
Replace manual Zig installation with mlugg/setup-zig@v1 action: - Automatically caches Zig compiler between runs - Caches global Zig cache directory for faster builds - Verifies tarball signatures for security - Cleaner, more maintainable CI code Benefits: - Faster CI (caching saves ~10 seconds per run) - More reliable (uses community mirror list) - Less boilerplate (3 lines vs 7 lines)
1 parent ea57a11 commit 638c596

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ jobs:
6767
with:
6868
bun-version: latest
6969

70-
- name: Install Zig 0.15.2
71-
run: |
72-
curl -L -o zig.tar.xz https://ziglang.org/download/0.15.2/zig-linux-x86_64-0.15.2.tar.xz
73-
tar xf zig.tar.xz
74-
sudo mv zig-linux-x86_64-0.15.2 /usr/local/zig-0.15.2
75-
sudo ln -s /usr/local/zig-0.15.2/zig /usr/local/bin/zig
70+
- uses: mlugg/setup-zig@v1
71+
with:
72+
version: 0.15.2
7673

7774
- name: Build WASM
7875
run: ./scripts/build-wasm.sh
@@ -95,12 +92,9 @@ jobs:
9592
with:
9693
bun-version: latest
9794

98-
- name: Install Zig 0.15.2
99-
run: |
100-
curl -L -o zig.tar.xz https://ziglang.org/download/0.15.2/zig-linux-x86_64-0.15.2.tar.xz
101-
tar xf zig.tar.xz
102-
sudo mv zig-linux-x86_64-0.15.2 /usr/local/zig-0.15.2
103-
sudo ln -s /usr/local/zig-0.15.2/zig /usr/local/bin/zig
95+
- uses: mlugg/setup-zig@v1
96+
with:
97+
version: 0.15.2
10498

10599
- name: Build WASM
106100
run: ./scripts/build-wasm.sh

0 commit comments

Comments
 (0)