-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.02 KB
/
build-systems.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
name: Build systems
on:
pull_request:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
#- name: Free up space
# uses: jlumbroso/free-disk-space@main
# with:
# tool-cache: true
- name: Ensure disk space
run: |
lsblk
df -h
mkdir -p /mnt/nix /nix
mount --bind /mnt/nix /nix
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Setup Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Setup Cachix
uses: cachix/cachix-action@v15
with:
name: anna328p
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Update volatile inputs
run: nix flake update keydb
- name: Build hermes configuration
run: nix build --accept-flake-config 'path:.#nixosConfigurations.hermes.config.system.build.toplevel'
- name: Confirm success
run: echo 'OK'