Skip to content

Commit

Permalink
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 8d30e71 commit 6e7940f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v7
- uses: DeterminateSystems/magic-nix-cache-action@v2

- name: Format
run: nix develop --command treefmt --fail-on-change
Expand Down Expand Up @@ -47,8 +48,9 @@ jobs:
- trace-to-events

steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v7
- uses: DeterminateSystems/magic-nix-cache-action@v2

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

0 comments on commit 6e7940f

Please sign in to comment.