Skip to content

Commit fa03ac3

Browse files
committed
ci: add check workflow
1 parent 6bb19c9 commit fa03ac3

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/check.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Validate Nix Flake
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
inputs:
7+
ref:
8+
required: false
9+
type: string
10+
push:
11+
paths:
12+
- "**.nix"
13+
- "**.lock"
14+
- ".github/workflows/check.yaml"
15+
- ".github/actions/**/*"
16+
17+
permissions: {}
18+
19+
jobs:
20+
check-flake:
21+
name: Check (${{ matrix.system }})
22+
runs-on: ${{ matrix.os }}
23+
24+
strategy:
25+
matrix:
26+
include:
27+
- os: ubuntu-latest
28+
system: x86_64-linux
29+
- os: macos-latest
30+
system: aarch64-darwin
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v5
35+
with:
36+
ref: ${{ inputs.ref && inputs.ref || github.ref_name }}
37+
persist-credentials: false
38+
39+
- uses: cachix/install-nix-action@v31
40+
with:
41+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- uses: cachix/cachix-action@v16
44+
with:
45+
name: kidibox
46+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
47+
48+
- name: Check Flake
49+
run: nix flake check

0 commit comments

Comments
 (0)