Skip to content

Commit 4b4ee78

Browse files
committed
ci: check nix flake
1 parent 44d6564 commit 4b4ee78

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/nix.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Nix
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["*"]
8+
9+
permissions: read-all
10+
11+
jobs:
12+
check:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-14]
17+
runs-on: ${{ matrix.os }}
18+
19+
name: flake check
20+
steps:
21+
- uses: actions/checkout@v4.1.7
22+
with:
23+
fetch-depth: 0
24+
- uses: DeterminateSystems/nix-installer-action@v13
25+
- uses: DeterminateSystems/magic-nix-cache-action@v7
26+
- run: nix flake check -L --show-trace
27+
fmt:
28+
runs-on: ubuntu-latest
29+
30+
name: nix fmt
31+
steps:
32+
- uses: actions/checkout@v4.1.7
33+
with:
34+
fetch-depth: 0
35+
- uses: DeterminateSystems/nix-installer-action@v13
36+
- uses: DeterminateSystems/magic-nix-cache-action@v7
37+
- run: nix run nixpkgs#nixfmt-rfc-style -- --check flake.nix

0 commit comments

Comments
 (0)