From 9cf1e952e2377b1278ce50e97447d364cf240c3d Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Mar 2026 20:53:21 +0000 Subject: [PATCH] Fix CI: skip cargo-zigbuild install when cached binary works cargo install fails with exit code 101 when the binary already exists from cache. Check if cargo-zigbuild works first before installing. https://claude.ai/code/session_01EcsZDNeWn56wFqryb4Wq7r --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5d92c0..28edce6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,8 +51,7 @@ jobs: # ziglang pip package installs as python-zig, symlink to zig for cargo-zigbuild sudo ln -sf "$(which python-zig)" /usr/local/bin/zig zig version - cargo-zigbuild --version 2>/dev/null || cargo install cargo-zigbuild - cargo-zigbuild --version + cargo-zigbuild --version || cargo install cargo-zigbuild - run: make check-fmt - run: make lint