File tree Expand file tree Collapse file tree 1 file changed +63
-0
lines changed
Expand file tree Collapse file tree 1 file changed +63
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments