-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (37 loc) · 928 Bytes
/
cache.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
---
name: Cache 📝
'on':
push:
branches:
- main
- cache
paths:
- '**.nix'
- '**.age'
- 'flake.lock'
concurrency:
group: ci-${{ github.ref }}-cache
cancel-in-progress: true
jobs:
cache:
name: Cache 📝
runs-on: ubuntu-22.04
strategy:
matrix:
hostname:
- laptop-private-elis
- server-main-elis
- server-sparv
- vps06
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v12
- uses: DeterminateSystems/magic-nix-cache-action@v7
- uses: cachix/cachix-action@v15
with:
name: etu
extraPullNames: 'nix-community'
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Build systems.
- name: Build system derivation
run: 'nix build .#nixosConfigurations.${{ matrix.hostname }}.config.system.build.toplevel'