-
Notifications
You must be signed in to change notification settings - Fork 27
34 lines (30 loc) · 990 Bytes
/
nix.yml
File metadata and controls
34 lines (30 loc) · 990 Bytes
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
29
30
31
32
33
34
---
name: build and test nix package
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
workflow_call:
concurrency:
group: nix-${{github.ref}}-${{github.event.pull_request.number || github.run_number}}
cancel-in-progress: true
permissions: {}
jobs:
nix-build:
name: Check Nix flake
runs-on: ubuntu-latest
steps:
# Install Nix on the runner
- uses: cachix/install-nix-action@96951a368ba55167b55f1c916f7d416bac6505fe # v31
with:
nix_path: nixpkgs=channel:nixos-unstable
# Pull from the cachix cache
- uses: cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17
with:
name: cclib
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Checkout of the current head in the working dir
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- name: Check nix flake
run: nix flake check -L