-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 1013 Bytes
/
nix.yml
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
name: "Build with Nix & Cachix"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
environment: someEnviro
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@V27
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: r-k-b
# 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_TOKEN }}'
- name: Keep the Flake up-to-date and healthy
uses: DeterminateSystems/flake-checker-action@v8
with:
fail-mode: true
- run: nix flake check
- run: nix build .
- run: nix shell --command echo "Computer says OK."