diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ffa3dbff..3e024c48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,12 +87,6 @@ jobs: - uses: nixbuild/nix-quick-install-action@v28 - - name: Enable Cachix binary cache - run: | - nix profile install nixpkgs#cachix - cachix use crane - cachix use nix-community - - name: Restore and cache Nix store uses: nix-community/cache-nix-action@v5.1.0 with: @@ -114,6 +108,12 @@ jobs: # always save the cache save-always: true + - name: Enable Cachix binary cache + run: | + nix profile install nixpkgs#cachix + cachix use crane + cachix use nix-community + - name: Apply Nix binary cache configuration run: | sudo tee -a "${XDG_CONFIG_HOME:-$HOME/.config}/nix/nix.conf" > /dev/null < /dev/null < /dev/null <