Add GitHub workflow
Some checks are pending
nix flake check / check (aarch64-linux) (push) Waiting to run
nix flake check / check (x86_64-linux) (push) Waiting to run

This commit is contained in:
Mikael 2024-10-23 00:26:09 +02:00
parent 6e5840b104
commit 273f1183c5
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

24
.github/workflows/check.yml vendored Normal file
View file

@ -0,0 +1,24 @@
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
allow-import-from-derivation = true
experimental-features = nix-command flakes pipe-operator
trusted-users = root $USER
"
- uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix --option allow-import-from-derivation true flake check