-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.31 KB
/
build.yml
File metadata and controls
46 lines (46 loc) · 1.31 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
name: Build NixOS/Darwin configurations
permissions:
contents: read
on:
pull_request:
push:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Define each OS & configuration you want to build
include:
- os: ubuntu-latest
system: nixos
config: lab
- os: ubuntu-24.04-arm
system: nixos
config: pi
- os: macos-latest
system: darwin
config: mbp3
fail-fast: false # let all matrix jobs finish even if one fails
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0 # required for `nix flake show`
- uses: extractions/setup-just@v4
with:
just-version: 1.43.1 # optional semver specification, otherwise latest
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Install direnv
run: |
curl -sfL https://direnv.net/install.sh | bash
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Load environment variables
run: |
direnv allow .
direnv export gha > "$GITHUB_ENV"
- name: Build ${{ matrix.config }}
run: |
just build ${{matrix.config}}