Skip to content

Commit

Permalink
fixup! Use GitHub Actions cache with Nix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Nov 15, 2023
1 parent 6e7940f commit 66a8cd8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v7
- uses: DeterminateSystems/magic-nix-cache-action@v2

# Evaluate the devshell here so that the time reported for subsequent
# steps that use it reflect what is actually done there.
- name: Evaluate devshell
run: nix develop

- name: Format
run: nix develop --command treefmt --fail-on-change

Expand Down Expand Up @@ -52,6 +57,11 @@ jobs:
- uses: DeterminateSystems/nix-installer-action@v7
- uses: DeterminateSystems/magic-nix-cache-action@v2

# Evaluate the devshell here so that the time reported for subsequent
# steps that use it reflect what is actually done there.
- name: Evaluate devshell
run: nix develop

- name: Build
run: nix build -L .#${{ matrix.package }}

Expand Down

0 comments on commit 66a8cd8

Please sign in to comment.