Skip to content

Commit ff86293

Browse files
committed
nix: ci
1 parent 9658ef4 commit ff86293

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/nix.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Nix CI"
2+
3+
on: [pull_request, push]
4+
5+
jobs:
6+
tests:
7+
name: "Nix build on ${{ matrix.os }}"
8+
runs-on: "${{ matrix.os }}-latest"
9+
strategy:
10+
matrix:
11+
os: [ubuntu]
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: DeterminateSystems/nix-installer-action@main
15+
- uses: DeterminateSystems/magic-nix-cache-action@main
16+
- run: nix --accept-flake-config build -L
17+
- run: nix --accept-flake-config run .#cachix push gepetto $(readlink result)
18+
env:
19+
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}

0 commit comments

Comments
 (0)