File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build on 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 : A job to try build 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 devel/cmake-core devel/ninja devel/pkgconf textproc/py-docutils archivers/liblz4 archivers/zstd textproc/libxml2 net/librdkafka devel/libepoll-shim
25+ run : |
26+ # clone libfds
27+ git clone --branch master https://github.com/CESNET/libfds.git libfds_build
28+
29+ # build libfds
30+ cd libfds_build && mkdir build && cd build
31+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
32+ make && make install
33+ cd ../..
34+
35+ # build ipfixcol2
36+ mkdir build && cd build
37+ cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1
38+ make && make install
39+ cd ..
40+
41+ # run ipfixcol2 tests
42+ cd build
43+ make test
44+ cd ..
45+
46+ # try to run ipfixcol2
47+ ipfixcol2 -V
48+ ipfixcol2 -h
49+ ipfixcol2 -L -v
You can’t perform that action at this time.
0 commit comments