Skip to content

Commit d150d22

Browse files
committed
CI: try to build and run tests on FreeBSD
1 parent e9c367e commit d150d22

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/freebsd.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 update -f
25+
pkg install -y git
26+
pkg install -y devel/cmake-core
27+
pkg install -y devel/ninja
28+
pkg install -y devel/pkgconf
29+
pkg install -y textproc/py-docutils
30+
pkg install -y archivers/liblz4
31+
pkg install -y archivers/zstd
32+
pkg install -y textproc/libxml2
33+
pkg install -y net/librdkafka
34+
pkg install -y devel/libepoll-shim
35+
run: |
36+
set -euo pipefail
37+
38+
# clone libfds
39+
git clone --branch master https://github.com/CESNET/libfds.git libfds_build
40+
41+
# build libfds
42+
cd libfds_build
43+
mkdir build
44+
cd build
45+
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
46+
make
47+
make install
48+
cd ../..
49+
50+
# build ipfixcol2
51+
mkdir build
52+
cd build
53+
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1
54+
make
55+
make install
56+
57+
# run ipfixcol2 tests
58+
make test
59+
60+
# try to run ipfixcol2
61+
ipfixcol2 -V
62+
ipfixcol2 -h
63+
ipfixcol2 -L -v

0 commit comments

Comments
 (0)