From 6c27e39849a2415a78b8cc06f3bb063b18384daa Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 3 Nov 2024 15:02:21 -0800 Subject: [PATCH] ci: use a namespace cache --- .github/workflows/test.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a16b16c..00de5f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,12 +3,21 @@ name: Test jobs: build: runs-on: namespace-profile-ghostty-macos + env: + ZIG_LOCAL_CACHE_DIR: /zig/local-cache + ZIG_GLOBAL_CACHE_DIR: /zig/global-cache steps: - name: Checkout code uses: actions/checkout@v4 - # Install Nix and use that to run our tests so our environment matches exactly. - - uses: cachix/install-nix-action@v23 + - name: Setup Cache + uses: namespacelabs/nscloud-cache-action@v1.2.0 + with: + path: | + /nix + /zig + + - uses: cachix/install-nix-action@v30 with: nix_path: nixpkgs=channel:nixos-unstable