There was an error while loading. Please reload this page.
1 parent a4c4bad commit 58da725Copy full SHA for 58da725
1 file changed
.github/workflows/build_nix.yml
@@ -1,4 +1,4 @@
1
-name: "Build Nix package on Ubuntu"
+name: "Build Nix package"
2
3
on:
4
push:
@@ -8,11 +8,22 @@ on:
8
9
jobs:
10
build:
11
- runs-on: ubuntu-latest
+ runs-on: ${{ matrix.os }}
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ os: [ubuntu-latest, macos-latest]
16
steps:
17
- uses: actions/checkout@v6.0.2
18
- uses: nixbuild/nix-quick-install-action@v34
19
with:
20
github_access_token: ${{ secrets.GITHUB_TOKEN }}
21
+ - name: Setup Nix cache
22
+ uses: nix-community/cache-nix-action@v7
23
+ with:
24
+ primary-key: nix-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
25
+ restore-prefixes-first-match: |
26
+ nix-${{ runner.os }}-${{ runner.arch }}-default-
27
+ nix-${{ runner.os }}-${{ runner.arch }}-
28
- name: Building package
29
run: nix build
0 commit comments