-
-
Notifications
You must be signed in to change notification settings - Fork 98
36 lines (33 loc) · 1.04 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
merge_group:
permissions:
contents: read
jobs:
# We probably should replace with a different faster CI soon,
# but atleast this gives us confidence for now
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix run github:Mic92/nix-fast-build -- --no-nom
# all builds combined consume too much disk space... we should soon switch to something else
nixos:
runs-on: ubuntu-latest
strategy:
matrix:
# we actually cannot build umbriel just now
# but it also looks like it doesn't run important stuff
#machine: [caliban, umbriel]
machine: [caliban]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix build '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'