nix/.forgejo/workflows/nix-flake-check.yaml

26 lines
613 B
YAML
Raw Permalink 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-30 17:07:01 -05:00
runs-on: nixos-host
2024-07-24 11:23:27 -05:00
steps:
2024-07-24 13:23:51 -05:00
- name: Checkout
uses: actions/checkout@v3
# cache not needed since we now run on the host directly
# - name: Load cached nix store
# id: cache-nix-store
# uses: actions/cache/restore@v4
# with:
# path: /nix/store
# key: ${{ runner.os }}-nix-store
2024-07-24 13:23:51 -05:00
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 }}