-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.33 KB
/
Copy pathbuild.yml
File metadata and controls
45 lines (38 loc) · 1.33 KB
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
name: "Flake Build"
on:
push:
branches:
master
jobs:
build-system:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Free Disk Space
uses: insightsengineering/disk-space-reclaimer@v1
with:
swap-storage: false
- name: Substituters
id: substituters
run: |
echo "TRUSTED_PUBLIC_KEYS=$(./nix.sh ci_get trusted-public-keys)" >> "$GITHUB_OUTPUT"
echo "SUBSTITUTERS=$(./nix.sh ci_get trusted-substituters)" >> "$GITHUB_OUTPUT"
- uses: samueldr/lix-gha-installer-action@latest
name: "Install Lix"
with:
extra_nix_config: |
trusted-public-keys = ${{ steps.substituters.outputs.TRUSTED_PUBLIC_KEYS }}
substituters = ${{ steps.substituters.outputs.SUBSTITUTERS }}
experimental-features = flakes nix-command pipe-operator
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build & push all outputs
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
nix develop .#ci --command bash -c "nix-build-all --systems x86_64-linux --override-input flake . --out-link flake --cachix-cache spearman4157"
nix build .#packages.x86_64-linux.deploy
cat result