-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (40 loc) · 1.32 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
40
41
42
43
44
45
46
47
48
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: nix-builder
permissions:
contents: read
jobs:
run-x86_64-linux:
name: nix builder for Ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: rstats-on-nix
# If you chose signing key for write access
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH }}'
- 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-14
# https://github.com/DeterminateSystems/nix-installer-action/blob/main/.github/workflows/ci.yml
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- 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