Try with caching?
This commit is contained in:
parent
4361355794
commit
fdcead0d7b
1 changed files with 20 additions and 8 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue