Skip to content

Commit 361b130

Browse files
authored
Merge pull request #5 from J-Gras/topic/jgras/add-ci
Add github CI
2 parents 06578e0 + 539fe7c commit 361b130

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

.github/workflows/zeek-matrix.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Zeek matrix tests
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
name: test-${{ matrix.zeekver }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
zeekver: [zeek, zeek-lts, zeek-nightly]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: zeek/action-zkg-install@v2
19+
with:
20+
zeek_version: ${{ matrix.zeekver }}
21+
pkg_sysdeps: libfuzzy-dev libtlsh-dev
22+
- uses: actions/upload-artifact@v4
23+
if: failure()
24+
with:
25+
name: zkg-logs-${{ matrix.zeekver }}
26+
path: ${{ github.workspace }}/.action-zkg-install/artifacts

.github/workflows/zeek-nightly.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Zeek nightly build
2+
3+
on:
4+
schedule:
5+
- cron: 30 6 * * 1
6+
7+
jobs:
8+
test-nightly:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: zeek/action-zkg-install@v2
12+
with:
13+
pkg: ${{ github.server_url }}/${{ github.repository }}
14+
pkg_sysdeps: libfuzzy-dev libtlsh-dev
15+
zeek_version: zeek-nightly
16+
- uses: actions/upload-artifact@v4
17+
if: failure()
18+
with:
19+
name: zkg-logs
20+
path: ${{ github.workspace }}/.action-zkg-install/artifacts

scripts/__load__.zeek

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# We load nothing by default
2+

bro-pkg.meta renamed to zkg.meta

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@ description = This plugin provides fuzzy hashing for Zeek.
33
tags = fuzzy hashing, ssdeep, TLSH
44
plugin_dir = build/JGras_FuzzyHashing.tgz
55
script_dir = scripts
6-
build_command = ./configure && cmake --build build
7-
test_command = cd testing && btest -c btest.cfg
6+
build_command = make
7+
test_command = make test
8+
depends =
9+
zeek >=7.0.0
10+
external_depends =
11+
libfuzzy-dev
12+
libtlsh-dev

0 commit comments

Comments
 (0)