aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-23 16:08:14 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-23 16:08:14 +0300
commit5981ba426e8ed8f6785195a03cc0d8a190173e61 (patch)
treea34f70ce092d000c2c16015c6b024df643538119 /.github
parentc580840307f0bb03ee3ccb8fe659282f3a1031e1 (diff)
ci: use homebrew zig on macos
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1bfc7aa6..e6c55dc7 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 zig@0.15
+ echo "$(brew --prefix zig@0.15)/bin" >> "$GITHUB_PATH"
+ "$(brew --prefix zig@0.15)/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