-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (45 loc) · 1.54 KB
/
build.yaml
File metadata and controls
52 lines (45 loc) · 1.54 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
46
47
48
49
50
51
52
name: Build flake-checker artifacts
on:
workflow_call:
workflow_dispatch:
jobs:
build-artifacts:
runs-on: ${{ matrix.systems.runner }}
permissions:
id-token: "write"
contents: "read"
env:
ARTIFACT_KEY: flake-checker-${{ matrix.systems.system }}
strategy:
matrix:
systems:
- nix-system: aarch64-darwin
runner: macos-15
system: ARM64-macOS
- nix-system: aarch64-linux
runner: ubuntu-24.04-arm
system: ARM64-Linux
- nix-system: x86_64-linux
runner: ubuntu-24.04
system: X64-Linux
steps:
- name: git checkout
uses: actions/checkout@v4
- name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@main
- name: Set up FlakeHub Cache
uses: DeterminateSystems/flakehub-cache-action@main
- name: Build and cache dev shell for ${{ matrix.systems.nix-system }} on ${{ matrix.systems.runner }}
run: |
nix build -L ".#devShells.${{ matrix.systems.nix-system }}.default"
- name: Build package for ${{ matrix.systems.nix-system }}
run: |
nix build -L ".#packages.${{ matrix.systems.nix-system }}.default"
cp ./result/bin/flake-checker flake-checker
- name: Upload flake-checker executable for ${{ matrix.systems.system }}
uses: actions/upload-artifact@v4.3.3
with:
# Artifact name
name: ${{ env.ARTIFACT_KEY }}
path: flake-checker
retention-days: 1