Skip to content

Commit 1041131

Browse files
committed
switch to cachix for CI
1 parent aa0422d commit 1041131

File tree

1 file changed

+29
-10
lines changed

1 file changed

+29
-10
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,38 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- 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
2326
# all builds combined consume too much disk space... we should soon switch to something else
24-
nixos:
27+
nixos-x86_64:
2528
runs-on: ubuntu-latest
2629
strategy:
2730
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]
3131
machine: [caliban]
3232
steps:
3333
- uses: actions/checkout@v4
3434
- 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'
3753
nix-darwin:
3854
runs-on: macos-latest
3955
strategy:
@@ -42,5 +58,8 @@ jobs:
4258
steps:
4359
- uses: actions/checkout@v4
4460
- 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'

0 commit comments

Comments
 (0)