-
Notifications
You must be signed in to change notification settings - Fork 81
42 lines (33 loc) · 863 Bytes
/
Copy pathbuild.yml
File metadata and controls
42 lines (33 loc) · 863 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build
on: [push]
jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build with Nix
run: nix build .#default
- name: Static build
run: nix build .#static
- name: Windows build
if: matrix.os == 'ubuntu-latest'
run: nix build .#windows
- name: Run tests with Nix
run: nix flake check