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: |