nix/.forgejo/workflows/nix.yaml

25 lines
528 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 13:31:28 -05:00
runs-on: beefcake
2024-07-24 11:23:27 -05:00
steps:
2024-07-24 13:23:51 -05:00
- name: Checkout
uses: actions/checkout@v3
2024-07-24 13:31:28 -05:00
- name: Load cached nix store
2024-07-24 13:23:51 -05:00
id: cache-nix-store
uses: actions/cache/restore@v4
with:
path: /nix/store
key: ${{ runner.os }}-nix-store
2024-07-24 13:31:28 -05:00
- name: Check nix flake
2024-07-24 13:23:51 -05:00
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 }}