-
Notifications
You must be signed in to change notification settings - Fork 2
82 lines (77 loc) · 2.05 KB
/
check.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: "Check & Cachix"
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
devshell:
strategy:
fail-fast: false
matrix:
runsOn:
- ubuntu-22.04
- macos-12
runs-on: ${{ matrix.runsOn }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v14
with:
name: igm
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix -Lv flake check --show-trace
- run: nix -Lv develop -c echo OK
check:
strategy:
fail-fast: false
matrix:
runsOn:
- ubuntu-20.04
- ubuntu-22.04
- macos-12
runs-on: ${{ matrix.runsOn }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v14
with:
name: igm
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix -Lv flake check --show-trace
working-directory: nix/
- run: nix -Lv develop -c echo OK
linux:
strategy:
fail-fast: false
matrix:
nixosConfiguration:
- ci-home
- ci-bare
- vbox-host
runs-on: ubuntu-latest
steps:
- run: sudo apt-get clean
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v14
with:
name: igm
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix -Lv build "./nix#nixosConfigurations.${{ matrix.nixosConfiguration }}.config.system.build.toplevel"
macos-latest:
strategy:
fail-fast: false
matrix:
runsOn:
- macos-12
runs-on: ${{ matrix.runsOn }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v23
- uses: cachix/cachix-action@v14
with:
name: igm
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix -Lv build "nix/#darwinConfigurations.ci-personal.system"
- run: nix -Lv develop -c echo OK