Try with caching?

This commit is contained in:
Daniel Flanagan 2024-07-24 13:23:51 -05:00
parent 4361355794
commit fdcead0d7b

View file

@ -1,12 +1,24 @@
on: [push]
jobs:
test:
check:
runs-on: nix
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check
run: |
pwd
ls -la .
nix flake check
- name: Checkout
uses: actions/checkout@v3
- name: Restore cached nix store
id: cache-nix-store
uses: actions/cache/restore@v4
with:
path: /nix/store
key: ${{ runner.os }}-nix-store
- name: Check
run: |
nix flake check
- name: Save nix store
uses: actions/cache/save@v4
with:
path: /nix/store
key: ${{ steps.cache-nix-store.outputs.cache-primary-key }}