This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build on 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: A job to try build on FreeBSD | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build on FreeBSD | |
| id: test | |
| uses: vmactions/freebsd-vm@v1 | |
| with: | |
| usesh: true | |
| prepare: | | |
| pkg install -y devel/cmake-core devel/ninja devel/pkgconf textproc/py-docutils archivers/liblz4 archivers/zstd textproc/libxml2 net/librdkafka devel/libepoll-shim | |
| run: | | |
| # 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 | |
| cd .. | |
| # run ipfixcol2 tests | |
| cd build | |
| make test | |
| cd .. | |
| # try to run ipfixcol2 | |
| ipfixcol2 -V | |
| ipfixcol2 -h | |
| ipfixcol2 -L -v |