FreeBSD Build #124
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: FreeBSD Build | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| #At the end of every day | |
| - cron: '0 0 * * *' | |
| jobs: | |
| test: | |
| name: FreeBSD | |
| runs-on: ubuntu-latest | |
| env: | |
| CFLAGS: -Werror -DNDPI_EXTENDED_SANITY_CHECKS -g -O2 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Test in FreeBSD | |
| id: test | |
| uses: vmactions/freebsd-vm@1885b78bae4c4c4b331b4b0461d23cc14cc72387 #v1.2.9 | |
| with: | |
| envs: 'CFLAGS' | |
| usesh: true | |
| copyback: false | |
| release: "15.0" | |
| prepare: | | |
| pkg install -y gcc git gettext flex bison libtool autoconf automake devel/pkgconf gmake libpcap json-c | |
| run: | | |
| echo "Working Directory: $(pwd)" | |
| echo "User.............: $(whoami)" | |
| echo "FreeBSD Version..: $(freebsd-version)" | |
| ./autogen.sh && ./configure | |
| gmake -j $(nproc) all | |
| gmake -j $(nproc) -C example | |
| ./example/ndpiReader -H | |
| #Avoid running tests to be fast: we are only interested in basic compilation |