-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.17 KB
/
main.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
41
42
43
44
45
46
47
48
49
name: Main Workflow
on: [push]
defaults:
run:
shell: bash
jobs:
build:
name: Build
timeout-minutes: 30
runs-on:
- self-hosted
- nix
- general
- ${{ matrix.runner.runner }}
- ${{ matrix.runner.size }}
strategy:
fail-fast: false
matrix:
runner:
- arch: x86_64-linux
runner: amd64-linux
size: max
- arch: aarch64-linux
runner: arm64-linux
size: max
- arch: aarch64-darwin
runner: arm64-darwin
size: small
env:
NIX_OUTPUT: ".#packages.${{ matrix.runner.arch }}.fdb_7.all"
steps:
- uses: actions/checkout@v4
- name: Info
run: |
nix show-derivation '.#defaultPackage.${{ matrix.runner.arch }}'
nix path-info '.#defaultPackage.${{ matrix.runner.arch }}' || true
- name: Build
run: |
nix build -L -v --no-link "${NIX_OUTPUT}"
- name: Cache
run: |
nix store sign "${NIX_OUTPUT}" -v -r -k ~/.secrets/nix-cache-private-key
nix copy -v "${NIX_OUTPUT}" --to 's3://nixed/cache?compression=zstd¶llel-compression=true'