-
Notifications
You must be signed in to change notification settings - Fork 48
64 lines (56 loc) · 1.47 KB
/
freebsd.yml
File metadata and controls
64 lines (56 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build and tests (FreeBSD)
on:
# Ignore changes in extra plugins (as they are not tested here)
push:
paths-ignore:
- 'extra_plugins/**'
pull_request:
paths-ignore:
- 'extra_plugins/**'
jobs:
test:
runs-on: ubuntu-latest
name: Build and run tests on FreeBSD
steps:
- uses: actions/checkout@v4
- name: Build on FreeBSD 14.2
uses: vmactions/freebsd-vm@v1
with:
release: "14.2"
usesh: true
run: |
set -euox pipefail
# install dependencies
pkg install -y \
git \
devel/cmake-core \
devel/ninja \
devel/pkgconf \
textproc/py-docutils \
archivers/liblz4 \
archivers/zstd \
textproc/libxml2 \
net/librdkafka \
devel/libepoll-shim
# clone libfds
git clone --branch master https://github.com/CESNET/libfds.git libfds_build
# build libfds
cd libfds_build
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
make install
cd ../..
# build ipfixcol2
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=1
make
make install
# run ipfixcol2 tests
make test
# try to run ipfixcol2
ipfixcol2 -V
ipfixcol2 -h
ipfixcol2 -L -v