Skip to content

Commit b8ee717

Browse files
committed
CI: add nix
1 parent 30c367c commit b8ee717

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/nix.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "CI - Nix"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
nix:
13+
runs-on: "${{ matrix.os }}-latest"
14+
strategy:
15+
matrix:
16+
os: [ubuntu, macos]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: cachix/install-nix-action@v31
20+
- uses: cachix/cachix-action@v16
21+
with:
22+
name: gepetto
23+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
24+
- run: nix build -L
25+
26+
check:
27+
if: always()
28+
name: check-macos-linux-nix
29+
30+
needs:
31+
- nix
32+
33+
runs-on: Ubuntu-latest
34+
35+
steps:
36+
- name: Decide whether the needed jobs succeeded or failed
37+
uses: re-actors/alls-green@release/v1
38+
with:
39+
jobs: ${{ toJSON(needs) }}

0 commit comments

Comments
 (0)