Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/cache-warm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Cache Warm

on:
push:
branches: [main]

concurrency:
group: cache-warm-${{ github.ref }}
cancel-in-progress: false

env:
ZIG_VERSION: '0.15.2'

jobs:
warm-ghostty:
name: Warm Ghostty Cache
runs-on: macos-15
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16"

- uses: mlugg/setup-zig@v2
with:
version: ${{ env.ZIG_VERSION }}

- name: Get Ghostty submodule SHA
id: ghostty-sha
run: echo "sha=$(git -C vendor/ghostty rev-parse HEAD)" >> "$GITHUB_OUTPUT"

- name: Cache Ghostty framework
id: ghostty-cache
uses: actions/cache@v4
with:
path: Frameworks
key: ghostty-${{ runner.os }}-${{ runner.arch }}-${{ steps.ghostty-sha.outputs.sha }}

- name: Build Ghostty
if: steps.ghostty-cache.outputs.cache-hit != 'true'
run: |
unset ZIG_LOCAL_CACHE_DIR ZIG_GLOBAL_CACHE_DIR
make ghostty
Loading