nix/.forgejo/workflows/nix.yaml

25 lines
516 B
YAML
Raw Normal View History

2024-07-24 11:23:27 -05:00
on: [push]
jobs:
2024-07-24 13:23:51 -05:00
check:
2024-07-24 11:45:07 -05:00
runs-on: nix
2024-07-24 11:23:27 -05:00
steps:
2024-07-24 13:23:51 -05:00
- 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 }}