Add GitHub workflow
This commit is contained in:
parent
6e5840b104
commit
e6abd49b9d
1 changed files with 23 additions and 0 deletions
23
.github/workflows/check.yml
vendored
Normal file
23
.github/workflows/check.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: nix flake check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
system: [ 'x86_64-linux', 'aarch64-linux' ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: |
|
||||||
|
curl --proto '=https' --tlsv1.3 -sSf -L https://install.lix.systems/lix \
|
||||||
|
| sh -s -- install --no-confirm --enable-flakes --nix-build-user-count "$(nproc || sysctl -n hw.ncpu)" \
|
||||||
|
--extra-conf "
|
||||||
|
accept-flake-config = true
|
||||||
|
experimental-features = nix-command flakes pipe-operator
|
||||||
|
trusted-users = root $USER
|
||||||
|
"
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@v8
|
||||||
|
- run: nix flake check
|
Loading…
Reference in a new issue