Skip to content

Commit

Permalink
Cache nix
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaq committed Oct 16, 2023
1 parent 2b9c5b4 commit 599f06a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
uses: nixbuild/nix-quick-install-action@v25
- name: Restore and cache Nix store
uses: nix-community/cache-nix-action@v4
with:
key: cache-${{ runner.os }}-${{ hashFiles('flake.lock') }}
restore-keys: cache-${{ runner.os }}-
- name: Build release
run: |
nix develop --command make all
run: nix develop --command make all
- name: Upload Github Pages artifact
uses: actions/upload-pages-artifact@v1
with:
Expand All @@ -27,7 +31,7 @@ jobs:
id-token: write
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
Expand Down

0 comments on commit 599f06a

Please sign in to comment.