-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (34 loc) · 1.06 KB
/
nix-build.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
---
name: "Nix build"
on:
pull_request:
push:
branches: [ master ]
jobs:
build:
name: ${{ matrix.job.target }}
runs-on: ${{ matrix.job.os }}
permissions:
id-token: "write"
contents: "read"
strategy:
fail-fast: false
matrix:
job:
- { os: ubuntu-20.04, target: x86_64-linux }
- { os: macos-13, target: x86_64-darwin }
- { os: macos-14, target: aarch64-darwin }
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Checks
run: nix build ".#checks.${{matrix.job.target}}.git-hooks-check" --accept-flake-config --log-lines 500
if: ${{ matrix.job.target == 'x86_64-linux' }}
shell: bash
- name: Tests
run: nix build ".#checks.${{matrix.job.target}}.tests" --accept-flake-config --log-lines 500
shell: bash
- name: Build devShell
run: nix build ".#devShells.${{matrix.job.target}}.default" --accept-flake-config --log-lines 500
shell: bash