From: Eric Leblond Date: Tue, 22 Apr 2025 08:25:12 +0000 (+0200) Subject: github-ci: add a nix build X-Git-Tag: suricata-8.0.0-rc1~332 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=649a032ba90c354351c9fb324e851738f33f7635;p=thirdparty%2Fsuricata.git github-ci: add a nix build This will test that shell.nix is working properly and also test compile-commands Makefile target. Ticket: #7669 --- diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 0000000000..eda73dc682 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,19 @@ +name: "Nix Env Build" +on: + pull_request: + push: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v31 + with: + nix_path: nixpkgs=channel:nixos-24.11 + - run: nix-shell --run ./scripts/bundle.sh + - run: nix-shell --run ./autogen.sh + - run: nix-shell --run "./configure CC=clang" + - run: nix-shell --run make + - run: nix-shell --run "src/suricata -V" + - run: nix-shell --run "make compile-commands" + - run: nix-shell --run "make compile-commands"