|
46 | 46 | uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
47 | 47 |
|
48 | 48 | - name: Set up Node.js |
49 | | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
| 49 | + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 |
50 | 50 | with: |
51 | 51 | node-version: '25' |
52 | 52 |
|
@@ -98,19 +98,22 @@ jobs: |
98 | 98 | # comment "Updated for Zig 0.15+ API (addLibrary / createModule |
99 | 99 | # pattern)"). 0.12 lacks `b.addLibrary` and the `.root_module` field |
100 | 100 | # and will not parse the build script. |
101 | | - # Direct curl was failing on every PR (#44 CI: curl exit 22 / 404) |
102 | | - # because Zig 0.14+ flipped tarball naming from zig-OS-ARCH-VERSION |
103 | | - # to zig-ARCH-OS-VERSION. mlugg/setup-zig handles the naming, fetches |
104 | | - # from ziglang.org with a community mirror fallback, and is SHA-pinned |
105 | | - # to v2.2.1. |
106 | 101 | - name: Install Zig |
107 | | - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1 |
108 | | - with: |
109 | | - version: '0.15.1' |
| 102 | + run: | |
| 103 | + ZIG_VERSION="0.15.1" |
| 104 | + # Zig 0.14+ flipped its tarball naming from zig-OS-ARCH-VERSION to |
| 105 | + # zig-ARCH-OS-VERSION. The old name 404s on ziglang.org for 0.15.1, |
| 106 | + # which was failing this step with curl exit 22 on every PR (#44 CI). |
| 107 | + ZIG_DIR="zig-x86_64-linux-${ZIG_VERSION}" |
| 108 | + curl -fsSL \ |
| 109 | + "https://ziglang.org/download/${ZIG_VERSION}/${ZIG_DIR}.tar.xz" \ |
| 110 | + -o /tmp/zig.tar.xz |
| 111 | + tar -xJf /tmp/zig.tar.xz -C /opt |
| 112 | + ln -s "/opt/${ZIG_DIR}/zig" /usr/local/bin/zig |
110 | 113 |
|
111 | 114 | # ---- Node (for smoke test within E2E script) ---- |
112 | 115 | - name: Set up Node.js |
113 | | - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 |
| 116 | + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 |
114 | 117 | with: |
115 | 118 | node-version: '25' |
116 | 119 |
|
|
0 commit comments