Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
Add Nix caching with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
DanNixon committed Nov 15, 2023
1 parent 97451a7 commit 7ddaf24
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 All @@ -40,7 +41,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 .#default
Expand Down

0 comments on commit 7ddaf24

Please sign in to comment.