-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (33 loc) · 1.06 KB
/
nix.yaml
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
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: nix-builder
jobs:
run-x86_64-linux:
name: nix builder for Ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run `nix-build ./inst/extdata/default.nix`
run: |
nix-build ./inst/extdata/default.nix
nix-shell ./inst/extdata/default.nix
run-x86_64-darwin:
name: nix builder for MacOS X86_64
# the DeterminateSystems action currently uses macos-12
# https://github.com/DeterminateSystems/nix-installer-action/blob/main/.github/workflows/ci.yml
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Run `nix-build ./inst/extdata/default.nix`
run: |
nix-build ./inst/extdata/default.nix
nix-shell ./inst/extdata/default.nix