Skip to content

Commit ea413ba

Browse files
committed
...
1 parent b26fda4 commit ea413ba

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/freebsd.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: FreeBSD
2+
3+
on:
4+
# Ignore changes in extra plugins (as they are not tested here)
5+
push:
6+
paths-ignore:
7+
- 'extra_plugins/**'
8+
pull_request:
9+
paths-ignore:
10+
- 'extra_plugins/**'
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
name: Build and run tests on FreeBSD
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Build on FreeBSD
19+
id: test
20+
uses: vmactions/freebsd-vm@v1
21+
with:
22+
usesh: true
23+
prepare: |
24+
pkg install -y git devel/cmake-core devel/ninja devel/pkgconf textproc/py-docutils archivers/liblz4 archivers/zstd textproc/libxml2 net/librdkafka devel/libepoll-shim
25+
run: |
26+
set -euo pipefail
27+
28+
# clone libfds
29+
git clone --branch master https://github.com/CESNET/libfds.git libfds_build
30+
31+
# build libfds
32+
cd libfds_build
33+
mkdir build
34+
cd build
35+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
36+
make
37+
make install
38+
cd ../..
39+
40+
# build ipfixcol2
41+
mkdir build
42+
cd build
43+
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1
44+
make
45+
make install
46+
47+
# run ipfixcol2 tests
48+
make test
49+
50+
# try to run ipfixcol2
51+
ipfixcol2 -V
52+
ipfixcol2 -h
53+
ipfixcol2 -L -v

0 commit comments

Comments
 (0)