2024-07-14 16:56:59 -04:00
|
|
|
name: "nix-check"
|
2024-07-14 10:28:53 -04:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '.github/**'
|
|
|
|
- '_img/**'
|
|
|
|
workflow_dispatch:
|
2024-07-03 17:07:40 -04:00
|
|
|
jobs:
|
2024-07-14 17:00:41 -04:00
|
|
|
fmt-check:
|
2024-07-03 17:07:40 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-14 17:00:41 -04:00
|
|
|
- uses: actions/checkout@main
|
2024-07-03 17:07:40 -04:00
|
|
|
with:
|
2024-07-03 21:34:19 -04:00
|
|
|
fetch-depth: 1
|
2024-07-14 10:28:53 -04:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: check if flake complies with default style
|
|
|
|
run: nix fmt -- -c .
|
2024-07-14 17:00:41 -04:00
|
|
|
eval-check:
|
2024-07-03 17:07:40 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-07-14 17:00:41 -04:00
|
|
|
- uses: actions/checkout@main
|
2024-07-03 17:07:40 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
2024-07-14 10:28:53 -04:00
|
|
|
- name: Install Nix
|
|
|
|
uses: DeterminateSystems/nix-installer-action@main
|
2024-07-03 17:07:40 -04:00
|
|
|
- name: check if flake evaluates
|
|
|
|
run: nix flake check
|