-
Notifications
You must be signed in to change notification settings - Fork 396
42 lines (34 loc) · 1012 Bytes
/
test-build-env.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
name: Test Local Build Environment
on:
workflow_dispatch:
# push:
# paths:
# - nix/**
# - flake.*
jobs:
test:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04 # x86_64-linux
- ubuntu-24.04-arm # aarch64-linux
- macos-13 # x86_64-darwin
- macos-15 # aarch64-darwin
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v29
if: ${{ matrix.os != 'ubuntu-24.04-arm' }}
# https://github.com/nixbuild/nix-quick-install-action/issues/55
- uses: cachix/install-nix-action@v30
if: ${{ matrix.os == 'ubuntu-24.04-arm' }}
- name: Set up build environment
run: |
nix develop --command just init
- name: Test build recipe
run: |
nix develop --command just build planck
- name: Test draw recipe
run: |
nix develop --command just draw