Skip to content

Commit 1c72d0c

Browse files
committed
github-ci: add a nix build
This will test that shell.nix is working properly and also test compile-commands Makefile target.
1 parent 13a23fe commit 1c72d0c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/nix.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "Nix Env Build"
2+
on:
3+
pull_request:
4+
push:
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: cachix/install-nix-action@v31
11+
with:
12+
nix_path: nixpkgs=channel:nixos-24.11
13+
- run: nix-shell --run ./scripts/bundle.sh
14+
- run: nix-shell --run ./autogen.sh
15+
- run: nix-shell --run ./configure
16+
- run: nix-shell --run make
17+
- run: nix-shell --run "src/suricata -V"
18+
- run: nix-shell --run "make compile-commands"
19+
- run: nix-shell --run "make compile-commands"

0 commit comments

Comments
 (0)