move nix cache to after nix install

This commit is contained in:
ahuston-0 2024-07-04 00:43:43 -04:00 committed by Alice Huston
parent 36bbf54e16
commit 11c8dcc04c

View File

@ -10,13 +10,13 @@ jobs:
if: github.ref == 'refs/heads/main' # ensure workflow_dispatch only runs on main
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Install Nix
uses: cachix/install-nix-action@v24
with:
extra_nix_config: |
experimental-features = nix-command flakes
install_url: https://releases.nixos.org/nix/nix-2.19.0/install
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Calculate pre-drv
run: nix ./utils/eval-to-drv.sh pre
- name: Pull latest docker images