-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.34 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
name: "cachix & check"
on:
pull_request:
push:
jobs:
build-hosts:
strategy:
matrix:
host: [ adrastea ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
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 build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel
build-home-configurations:
strategy:
matrix:
home: [ lyc@adrastea, lyc@metis, lyc@ict-malcon ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
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