-
-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (28 loc) · 811 Bytes
/
nix-build.yml
File metadata and controls
28 lines (28 loc) · 811 Bytes
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
---
name: "Nix build"
on:
push:
branches: [ main ]
jobs:
build:
name: ${{ matrix.job.target }}
runs-on: ${{ matrix.job.os }}
strategy:
fail-fast: false
matrix:
job:
- { os: ubuntu-24.04, target: x86_64-linux }
- { os: macos-15, target: aarch64-darwin }
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: neorocks
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build package
run: nix build ".#packages.${{matrix.job.target}}.default" -Lv --accept-flake-config
shell: bash
- name: Build devShell
run: nix build ".#devShells.${{matrix.job.target}}.default" -Lv --accept-flake-config
shell: bash