-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 1.3 KB
/
ci.yaml
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: CI
on:
pull_request:
push:
branches:
- main
jobs:
adama:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-v2-adama-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-v2-adama-${{ runner.os }}-
paths: |
/nix/store
~/.cache/nix
~root/.cache/nix
- run: nix --accept-flake-config --extra-experimental-features 'flakes nix-command' path-info --derivation .#nixosConfigurations.adama.config.system.build.toplevel --no-eval-cache
cain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
- uses: nix-community/cache-nix-action@v5
with:
primary-key: nix-v2-cain-${{ runner.os }}-${{ hashFiles('**/*.nix') }}
restore-prefixes-first-match: nix-v2-cain-${{ runner.os }}-
paths: |
/nix/store
~/.cache/nix
~root/.cache/nix
- run: nix --accept-flake-config --extra-experimental-features 'flakes nix-command' path-info --derivation .#nixosConfigurations.cain.config.system.build.toplevel --no-eval-cache