Skip to content

Commit 4fde3ff

Browse files
committed
fix: correct Zig download URL format for 0.14.1+
Zig changed the download URL format starting with v0.14.1: - Old format: zig-linux-x86_64-VERSION.tar.xz - New format: zig-x86_64-linux-VERSION.tar.xz Changes: - Switch from /builds to /download endpoint - Use correct ARCH-PLATFORM order (not PLATFORM-ARCH) - Add comment documenting the format change This fixes the 404 error when downloading Zig 0.15.2.
1 parent eda89ec commit 4fde3ff

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/setup-zig/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ runs:
3939
exit 1
4040
fi
4141
42-
# Download from ziglang.org index
43-
TARBALL="zig-${PLATFORM}-${ARCH}-${VERSION}.tar.xz"
44-
URL="https://ziglang.org/builds/zig-${PLATFORM}-${ARCH}-${VERSION}.tar.xz"
42+
# Download from ziglang.org
43+
# Note: Format changed in 0.14.1+ from zig-linux-x86_64 to zig-x86_64-linux
44+
TARBALL="zig-${ARCH}-${PLATFORM}-${VERSION}.tar.xz"
45+
URL="https://ziglang.org/download/${VERSION}/${TARBALL}"
4546
4647
echo "Downloading Zig ${VERSION} for ${PLATFORM}-${ARCH}..."
4748
curl --retry 3 --retry-delay 5 -L -o "/tmp/${TARBALL}" "${URL}"

0 commit comments

Comments
 (0)