-67
.github/workflows/build.yaml
-67
.github/workflows/build.yaml
···
1
-
name: Check and Build configuration
2
-
3
-
on:
4
-
push:
5
-
6
-
jobs:
7
-
check:
8
-
runs-on: ubuntu-latest
9
-
steps:
10
-
- name: Checkout
11
-
uses: actions/checkout@v4
12
-
13
-
- name: Replace .cry files with some bollocks
14
-
run: find . -name "*.cry" -execdir bash -c 'echo some bollocks > {}' \;
15
-
16
-
- name: Install Nix
17
-
uses: DeterminateSystems/nix-installer-action@v10
18
-
with:
19
-
extra-conf: |
20
-
experimental-features = nix-command flakes
21
-
22
-
- name: Run nix flake check
23
-
run: nix flake check
24
-
25
-
- name: Check with DeterminateSystems/flake-checker-action
26
-
uses: DeterminateSystems/flake-checker-action@v5
27
-
with:
28
-
ignore-missing-flake-lock: false
29
-
30
-
build:
31
-
needs: check
32
-
runs-on: ubuntu-latest
33
-
strategy:
34
-
matrix:
35
-
host:
36
-
- koumakan
37
-
- renko
38
-
- bocchi
39
-
- kita
40
-
- ryo
41
-
- nijika
42
-
43
-
steps:
44
-
- name: Maximize build space
45
-
uses: easimon/maximize-build-space@master
46
-
with:
47
-
overprovision-lvm: 'true'
48
-
remove-dotnet: 'true'
49
-
remove-android: 'true'
50
-
remove-haskell: 'true'
51
-
remove-codeql: 'true'
52
-
remove-docker-images: 'true'
53
-
54
-
- name: Checkout
55
-
uses: actions/checkout@v4
56
-
57
-
- name: Install Nix
58
-
uses: DeterminateSystems/nix-installer-action@v10
59
-
with:
60
-
extra-conf: |
61
-
fallback = true # why is this not the default?
62
-
connect-timeout = 30
63
-
netrc-file = /etc/nix/netrc
64
-
experimental-features = nix-command flakes
65
-
66
-
- name: Build configuration
67
-
run: nix run github:Mic92/nix-fast-build -- --no-nom --skip-cached --flake .#nixosConfigurations."${{ matrix.host }}".config.system.build.toplevel