File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments