-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 1.06 KB
/
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
28
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 }}'
- uses: DeterminateSystems/magic-nix-cache-action@v7
- 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."