Skip to content

Commit 1b49c61

Browse files
committed
...
1 parent b26fda4 commit 1b49c61

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/freebsd.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)