-
Notifications
You must be signed in to change notification settings - Fork 7
68 lines (51 loc) · 1.6 KB
/
nix.yaml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Nix
on: push
jobs:
nix-build:
name: nix build
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v9
- name: Run the Magic Nix Cache 🔌
uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Build the package
run: nix build
nix-flake-check:
name: nix flake check
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v9
- name: Run the Magic Nix Cache 🔌
uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Check the flake for errors
run: nix flake check
nix-fmt:
name: nix fmt
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v9
- name: Run the Magic Nix Cache 🔌
uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Check the formatting
run: nix fmt -- --check .
evaluate-nix-shell:
name: Evaluate the Nix shell
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v9
- name: Run the Magic Nix Cache 🔌
uses: DeterminateSystems/magic-nix-cache-action@v3
- name: Evaluate the Nix shell
run: nix develop -c "true"