switch to cachix for CI
Jörg Thalheim committed
Jan 31, 2025 at 11:15 UTC
10411315f5e0e0775b4f79c5307bb527ce996576
1 file changed
+29
-10
.github/workflows/ci.yml
+29
-10
@@ -18,22 +18,38 @@ jobs:
18
steps:
19
- uses: actions/checkout@v4
20
- uses: cachix/install-nix-action@v30
21
- - uses: DeterminateSystems/magic-nix-cache-action@v9
22
- - run: nix run github:Mic92/nix-fast-build -- --no-nom
21
+ - uses: cachix/cachix-action@v15
22
+ with:
23
+ name: nixos-infra-dev
24
+ authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
25
+ - run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom
26
# all builds combined consume too much disk space... we should soon switch to something else
24
- nixos:
27
+ nixos-x86_64:
28
runs-on: ubuntu-latest
29
strategy:
30
matrix:
28
- # we actually cannot build umbriel just now
29
- # but it also looks like it doesn't run important stuff
30
- #machine: [caliban, umbriel]
31
machine: [caliban]
32
steps:
33
- uses: actions/checkout@v4
34
- uses: cachix/install-nix-action@v30
35
- - uses: DeterminateSystems/magic-nix-cache-action@v9
36
- - run: nix build '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'
35
+ - uses: cachix/cachix-action@v15
36
+ with:
37
+ name: nixos-infra-dev
38
+ authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
39
+ - run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom --flake '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'
40
+ nixos-aarch64:
41
+ runs-on: ubuntu-22.04-arm
42
+ strategy:
43
+ matrix:
44
+ machine: [umbriel]
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - uses: cachix/install-nix-action@v30
48
+ - uses: cachix/cachix-action@v15
49
+ with:
50
+ name: nixos-infra-dev
51
+ authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
52
+ - run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom --flake '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel'
53
nix-darwin:
54
runs-on: macos-latest
55
strategy:
@@ -42,5 +58,8 @@ jobs:
58
steps:
59
- uses: actions/checkout@v4
60
- uses: cachix/install-nix-action@v30
45
- - uses: DeterminateSystems/magic-nix-cache-action@v9
46
- - run: nix build '.#darwinConfigurations."${{ matrix.machine }}".config.system.build.toplevel'
61
+ - uses: cachix/cachix-action@v15
62
+ with:
63
+ name: nixos-infra-dev
64
+ authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
65
+ - run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom --flake '.#darwinConfigurations."${{ matrix.machine }}".config.system.build.toplevel'