aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-06-03 22:16:56 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-06-03 22:17:43 +0300
commita0afbae2e5fc4ff9191b87563c47b8b6304b1dff (patch)
tree00e0f8414db3a9c3758b3db89315ee27d3a1b18c
parent0473d329fdd7566c209edd205f5ddf1dd5e9dc16 (diff)
ci: cache vendored zig build outputs
-rw-r--r--.github/workflows/ci.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index dcd0d1ba..78ff5fd8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -42,10 +42,14 @@ jobs:
include:
- os: ubuntu-latest
nextest_filter: all()
- - os: macos-latest
+ - os: macos-15
nextest_filter: not binary(live_handoff)
runs-on: ${{ matrix.os }}
timeout-minutes: 10
+ env:
+ CARGO_INCREMENTAL: "0"
+ CARGO_PROFILE_DEV_DEBUG: "0"
+ CARGO_PROFILE_TEST_DEBUG: "0"
steps:
- name: Checkout
uses: actions/checkout@v6
@@ -67,7 +71,15 @@ jobs:
- name: Install macOS build tools
if: runner.os == 'macOS'
- run: brew install cmake ninja
+ run: command -v cmake >/dev/null && command -v ninja >/dev/null || brew install cmake ninja
+
+ - name: Restore Zig build cache
+ uses: actions/cache@v4
+ with:
+ path: |
+ vendor/libghostty-vt/.zig-cache
+ vendor/libghostty-vt/zig-out
+ key: zig-${{ runner.os }}-${{ runner.arch }}-0.15.2-releasefast-simd-${{ hashFiles('build.rs', 'vendor/libghostty-vt.vendor.json', 'vendor/libghostty-vt/build.zig', 'vendor/libghostty-vt/build.zig.zon', 'vendor/libghostty-vt/VERSION', 'vendor/libghostty-vt/include/**', 'vendor/libghostty-vt/pkg/**', 'vendor/libghostty-vt/src/**') }}
- name: Restore cargo cache
uses: Swatinem/rust-cache@v2