Skip to content

armgit / herdr

Public Imported from GitHub
0

the runtime your coding agents live on

ci: use homebrew zig on macos

Ogulcan Celik5981ba426e8e
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1bfc7aa6e..e6c55dc7a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -80,13 +80,30 @@ jobs:
bun-version: 1.3.14
- name: Install Zig
+ if: runner.os != 'macOS'
uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
with:
version: 0.15.2
+ - name: Restore Homebrew Zig cache
+ if: runner.os == 'macOS'
+ uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
+ with:
+ path: ~/Library/Caches/Homebrew/downloads
+ key: homebrew-zig-0.15-${{ runner.os }}-${{ runner.arch }}
+ restore-keys: |
+ homebrew-zig-0.15-${{ runner.os }}-
+
+ - name: Install patched Zig on macOS
+ if: runner.os == 'macOS'
+ run: |
+ HOMEBREW_NO_AUTO_UPDATE=1 brew install [email protected]
+ echo "$(brew --prefix [email protected])/bin" >> "$GITHUB_PATH"
+ "$(brew --prefix [email protected])/bin/zig" version
+
- name: Install macOS build tools
if: runner.os == 'macOS'
- run: brew install cmake ninja
+ run: HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake ninja
- name: Restore cargo cache
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2