Skip to content

Commit 2b93b5e

Browse files
committed
Fix GitHub Actions toolchain installation paths
1 parent c16ca06 commit 2b93b5e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,20 @@ jobs:
1919

2020
- name: Install Zig 0.15.2
2121
run: |
22-
curl -L "https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz" -o zig.tar.xz
22+
curl -fL "https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz" -o zig.tar.xz
2323
tar -xf zig.tar.xz
24-
echo "$PWD/zig-x86_64-linux-0.15.2" >> "$GITHUB_PATH"
25-
zig version
24+
ZIG_DIR="$PWD/zig-x86_64-linux-0.15.2"
25+
echo "$ZIG_DIR" >> "$GITHUB_PATH"
26+
"$ZIG_DIR/zig" version
2627
2728
- name: Install Cosmocc 4.0.2
2829
run: |
29-
curl -L "https://cosmo.zip/pub/cosmocc/cosmocc-4.0.2.zip" -o cosmocc.zip
30+
curl -fL "https://cosmo.zip/pub/cosmocc/cosmocc-4.0.2.zip" -o cosmocc.zip
3031
unzip -q cosmocc.zip
31-
echo "$PWD/cosmocc/bin" >> "$GITHUB_PATH"
32-
cosmocc --version || true
32+
COSMO_DIR="$(find "$PWD" -maxdepth 1 -type d -name 'cosmocc-*' | head -n 1)"
33+
test -n "$COSMO_DIR"
34+
echo "$COSMO_DIR/bin" >> "$GITHUB_PATH"
35+
"$COSMO_DIR/bin/cosmocc" --version
3336
3437
- name: Build matrix binaries (including cosmo)
3538
run: zig build matrix -Doptimize=ReleaseFast

0 commit comments

Comments
 (0)