-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (78 loc) · 2.07 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
83
name: "Check & Cachix"
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
devshell:
strategy:
fail-fast: false
matrix:
runsOn:
- ubuntu-22.04
- macos-12
- macos-14
runs-on: ${{ matrix.runsOn }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- 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-22.04
- macos-12
- macos-14
runs-on: ${{ matrix.runsOn }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- 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@v25
- 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-14:
strategy:
fail-fast: false
matrix:
runsOn:
- macos-14
runs-on: ${{ matrix.runsOn }}
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- 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