File tree Expand file tree Collapse file tree 1 file changed +65
-0
lines changed
Expand file tree Collapse file tree 1 file changed +65
-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+ release : " 15.0"
24+ run : |
25+ set -euox pipefail
26+
27+ # install dependencies
28+ pkg update -f
29+ pkg install -y git
30+ pkg install -y devel/cmake-core
31+ pkg install -y devel/ninja
32+ pkg install -y devel/pkgconf
33+ pkg install -y textproc/py-docutils
34+ pkg install -y archivers/liblz4
35+ pkg install -y archivers/zstd
36+ pkg install -y textproc/libxml2
37+ pkg install -y net/librdkafka
38+ pkg install -y devel/libepoll-shim
39+
40+ # clone libfds
41+ git clone --branch master https://github.com/CESNET/libfds.git libfds_build
42+
43+ # build libfds
44+ cd libfds_build
45+ mkdir build
46+ cd build
47+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
48+ make
49+ make install
50+ cd ../..
51+
52+ # build ipfixcol2
53+ mkdir build
54+ cd build
55+ cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1
56+ make
57+ make install
58+
59+ # run ipfixcol2 tests
60+ make test
61+
62+ # try to run ipfixcol2
63+ ipfixcol2 -V
64+ ipfixcol2 -h
65+ ipfixcol2 -L -v
You can’t perform that action at this time.
0 commit comments