44# 2020-06-27 - slg - expanded to G++ for MacOS
55# 2020-07-03 - slg - ported to be13_api; removed python (be13_api doesn't use python)
66
7- name : TCPFLOW CI ON MAC AND UBUNTU (c++14)
7+ name : TCPFLOW CI (c++14)
88on :
99 push :
1010 branches :
1313 branches :
1414 - main # Specify the branches for which pull_request events should trigger the action
1515jobs :
16- build :
16+ native :
1717 runs-on : ${{ matrix.os }}
1818 strategy :
1919 matrix :
@@ -29,11 +29,11 @@ jobs:
2929 - name : Install C++ dependencies on MacOS
3030 if : startsWith(matrix.os, 'macOS')
3131 run : |
32- brew install libtool autoconf automake boost openssl libpcap
33- echo LDFLAGS="-L$(brew --prefix libpcap)/lib -L$(brew --prefix openssl)/lib -L$(brew --prefix boost)/lib" >> $GITHUB_ENV
34- echo CFLAGS="-I$(brew --prefix libpcap)/include -I$(brew --prefix openssl)/include -I$(brew --prefix boost)/include" >> $GITHUB_ENV
35- echo CXXFLAGS="-I$(brew --prefix libpcap)/include -I$(brew --prefix openssl)/include -I$(brew --prefix boost)/include" >> $GITHUB_ENV
36- echo PKG_CONFIG_PATH="$(brew --prefix libpcap)/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" >> $GITHUB_ENV
32+ brew install libtool autoconf automake boost openssl libpcap cairo
33+ echo LDFLAGS="-L$(brew --prefix cairo)/lib -L$(brew --prefix libpcap)/lib -L$(brew --prefix openssl)/lib -L$(brew --prefix boost)/lib" >> $GITHUB_ENV
34+ echo CFLAGS="-I$(brew --prefix cairo)/include -I$(brew --prefix libpcap)/include -I$(brew --prefix openssl)/include -I$(brew --prefix boost)/include" >> $GITHUB_ENV
35+ echo CXXFLAGS="-I$(brew --prefix cairo)/include -I$(brew --prefix libpcap)/include -I$(brew --prefix openssl)/include -I$(brew --prefix boost)/include" >> $GITHUB_ENV
36+ echo PKG_CONFIG_PATH="$(brew --prefix cairo)/pkgconfig:$(brew --prefix libpcap)/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" >> $GITHUB_ENV
3737
3838 - name : Install C++ dependencies on Ubuntu
3939 if : startsWith(matrix.os, 'ubuntu')
5555 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5656 run : |
5757 bash .make-codecov
58+
59+ freebsd :
60+ runs-on : ubuntu-latest
61+ steps :
62+ - uses : actions/checkout@v4
63+ with :
64+ submodules : recursive
65+
66+ - name : Test in FreeBSD
67+ uses : vmactions/freebsd-vm@v1
68+ with :
69+ usesh : true
70+ prepare : |
71+ pkg install -y bash autoconf automake boost-all openssl libpcap cairo
72+
73+ run : |
74+ set -e
75+ bash bootstrap.sh
76+ ./configure
77+ make
78+ make check
79+
80+ openbsd :
81+ runs-on : ubuntu-latest
82+ steps :
83+ - uses : actions/checkout@v4
84+ with :
85+ submodules : recursive
86+
87+ - name : Test in OpenBSD
88+ uses : vmactions/openbsd-vm@v1
89+ with :
90+ usesh : true
91+ prepare : |
92+ pkg_add bash autoconf%2.72 automake%1.16 boost cairo
93+
94+ # OpenBSD has it's own libpcap which can't read some pcap, nuke it!
95+ run : |
96+ set -e
97+ env AUTOCONF_VERSION=2.72 AUTOMAKE_VERSION=1.16 bash bootstrap.sh
98+ ./configure
99+ make
100+ rm ./tests/test1-out-of-order.pcap
101+ rm ./tests/test5-lines-randomized.pcap
102+ rm ./tests/test5-lines-randomized2.pcap
103+ make check
104+
105+ # NetBSD VM quite unstable, it hangs on installing cairo, bash bootstrap.sh and so on
0 commit comments