-
Notifications
You must be signed in to change notification settings - Fork 4
37 lines (32 loc) · 838 Bytes
/
nix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Nix
on:
push:
branches: ["main"]
pull_request:
branches: ["*"]
permissions: read-all
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.os }}
name: flake check
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix flake check -L --show-trace
fmt:
runs-on: ubuntu-latest
name: nix fmt
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@v14
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix run nixpkgs#nixfmt-rfc-style -- --check flake.nix