From 273f1183c5ec11bded6cb4eddca031233f6b80ad Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 23 Oct 2024 00:26:09 +0200 Subject: [PATCH] Add GitHub workflow --- .github/workflows/check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..d15c625 --- /dev/null +++ b/.github/workflows/check.yml @@ -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