Skip to content

Commit

Permalink
Add Nix caching to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Nov 15, 2023
1 parent 5484882 commit efde472
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- 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.
# 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

Expand Down Expand Up @@ -62,7 +63,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v22
- 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 efde472

Please sign in to comment.