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] on: [push]
jobs: jobs:
test: check:
runs-on: nix runs-on: nix
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 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 - name: Check
run: | run: |
pwd
ls -la .
nix flake check 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 }}