-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (57 loc) · 2.03 KB
/
cachix.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
name: "cachix & check"
on:
push:
jobs:
build-hosts:
strategy:
matrix:
host: [ adrastea, metis ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v15
with:
name: inclyc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Cherry-picked from https://github.com/TGuimbert/dotfiles/blob/3b9d27ec6e22ab7c70819799876e4eb089678424/.github/workflows/cachix.yaml#L8
- name: Build NixOS configuration
run: nix eval --raw .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel
build-packages:
strategy:
matrix:
package: [ ddns ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: inclyc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Cherry-picked from https://github.com/TGuimbert/dotfiles/blob/3b9d27ec6e22ab7c70819799876e4eb089678424/.github/workflows/cachix.yaml#L8
- name: Build Packages
run: nix build .#${{ matrix.package }}
build-home-configurations:
strategy:
matrix:
home: [ lyc@adrastea, lyc@metis, lyc@ict-malcon ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: DeterminateSystems/magic-nix-cache-action@main
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: inclyc
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Cherry-picked from https://github.com/TGuimbert/dotfiles/blob/3b9d27ec6e22ab7c70819799876e4eb089678424/.github/workflows/cachix.yaml#L8
- name: Build home-manager configuration
run: nix build .#homeConfigurations."${{ matrix.home }}".activationPackage