From 185870458ee151e00dc9b0c1be97c5420daf6993 Mon Sep 17 00:00:00 2001 From: James Eversole Date: Thu, 23 Jan 2025 17:40:13 -0600 Subject: [PATCH] Use Determinate Systems' nix caching action --- .gitea/workflows/test-and-build.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/test-and-build.yml b/.gitea/workflows/test-and-build.yml index 675ea22..fbbdb8a 100644 --- a/.gitea/workflows/test-and-build.yml +++ b/.gitea/workflows/test-and-build.yml @@ -29,14 +29,7 @@ jobs: cabal- - name: Set up cache for Nix - uses: actions/cache@v4 - with: - path: | - /nix/store - /nix/var/nix/cache - key: nix-${{ hashFiles('flake.lock') }} - restore-keys: | - nix- + uses: DeterminateSystems/magic-nix-cache-action@v2 - name: Initialize Cabal and update package list run: | @@ -59,14 +52,7 @@ jobs: fetch-depth: 0 - name: Set up cache for Nix - uses: actions/cache@v4 - with: - path: | - /nix/store - /nix/var/nix/cache - key: nix-${{ hashFiles('flake.lock') }} - restore-keys: | - nix- + uses: DeterminateSystems/magic-nix-cache-action@v2 - name: Build and shrink binary run: |