ci: iTerm2 job should run on Namespace and use cache

This commit is contained in:
Mitchell Hashimoto
2024-12-12 13:41:43 -08:00
parent 674e2980e2
commit 9b4e3622aa

View File

@ -7,21 +7,35 @@ on:
jobs: jobs:
update-iterm2-schemes: update-iterm2-schemes:
if: github.repository == 'ghostty-org/ghostty' if: github.repository == 'ghostty-org/ghostty'
runs-on: ubuntu-latest runs-on: namespace-profile-ghostty-sm
permissions: permissions:
# Needed for create-pull-request action # Needed for create-pull-request action
contents: write contents: write
pull-requests: write pull-requests: write
env:
ZIG_LOCAL_CACHE_DIR: /zig/local-cache
ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup Cache
uses: namespacelabs/nscloud-cache-action@v1.2.0
with:
path: |
/nix
/zig
- name: Setup Nix - name: Setup Nix
uses: cachix/install-nix-action@v30 uses: cachix/install-nix-action@v30
with: with:
nix_path: nixpkgs=channel:nixos-unstable nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: ghostty
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Run zig fetch - name: Run zig fetch
id: zig_fetch id: zig_fetch