@@ -43,11 +43,17 @@ jobs:
4343 - " -DFLB_SANITIZE_MEMORY=On"
4444 - " -DFLB_SANITIZE_THREAD=On"
4545 compiler :
46- - gcc
47- - clang
46+ - gcc :
47+ cc : gcc
48+ cxx : g++
49+ - clang :
50+ cc : clang
51+ cxx : clang++
4852 exclude :
4953 - flb_option : " -DFLB_COVERAGE=On"
50- compiler : clang
54+ compiler :
55+ cc : clang
56+ cxx : clang++
5157 permissions :
5258 contents : read
5359 steps :
6470 repository : calyptia/fluent-bit-ci
6571 path : ci
6672
67- - name : ${{ matrix.compiler }} - ${{ matrix.flb_option }}
73+ - name : ${{ matrix.compiler.cc }} & ${{ matrix.compiler.cxx }} - ${{ matrix.flb_option }}
6874 run : |
6975 echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
7076 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
7379 sudo usermod -a -G systemd-journal $(id -un)
7480 sudo -E su -p $(id -un) -c "PATH=$PATH ci/scripts/run-unit-tests.sh"
7581 env :
76- CC : ${{ matrix.compiler }}
77- CXX : ${{ matrix.compiler }}
82+ CC : ${{ matrix.compiler.cc }}
83+ CXX : ${{ matrix.compiler.cxx }}
7884 FLB_OPT : ${{ matrix.flb_option }}
7985
8086 run-macos-unit-tests :
@@ -128,7 +134,8 @@ jobs:
128134 omit_option : " -DFLB_WITHOUT_flb-it-utils=1 -DFLB_WITHOUT_flb-it-pack=1"
129135 global_option : " -DFLB_BACKTRACE=Off -DFLB_SHARED_LIB=Off -DFLB_DEBUG=On -DFLB_ALL=On -DFLB_EXAMPLES=Off"
130136 unit_test_option : " -DFLB_TESTS_INTERNAL=On"
131- compiler : gcc
137+ compiler_cc : gcc
138+ compiler_cxx : g++
132139 steps :
133140 - name : Checkout Fluent Bit code
134141 uses : actions/checkout@v4
@@ -156,15 +163,15 @@ jobs:
156163 export FLB_UNIT_TEST_OPTION="${{ matrix.config.unit_test_option }}"
157164 export FLB_OPT="${FLB_OPTION} ${GLOBAL_OPTION} ${FLB_UNIT_TEST_OPTION} ${FLB_OMIT_OPTION}"
158165
159- echo "CC = ${{ matrix.config.compiler }}, CXX = ${{ matrix.config.compiler }}, FLB_OPT = $FLB_OPT"
166+ echo "CC = ${{ matrix.config.compiler_cc }}, CXX = ${{ matrix.config.compiler_cxx }}, FLB_OPT = $FLB_OPT"
160167
161168 cmake ${FLB_OPT} ../
162169 make -j $nparallel
163170 ctest -j $nparallel --build-run-dir . --output-on-failure
164171 working-directory : build
165172 env :
166- CC : ${{ matrix.config.compiler }}
167- CXX : ${{ matrix.config.compiler }}
173+ CC : ${{ matrix.config.compiler_cc }}
174+ CXX : ${{ matrix.config.compiler_cxx }}
168175
169176 run-qemu-ubuntu-unit-tests :
170177 # We chain this after Linux one as there are CPU time costs for QEMU emulation
@@ -208,7 +215,7 @@ jobs:
208215 export FLB_UNIT_TEST_OPTION="-DFLB_TESTS_INTERNAL=On"
209216 export FLB_OPT="${FLB_OPTION} ${GLOBAL_OPTION} ${FLB_UNIT_TEST_OPTION} ${FLB_OMIT_OPTION}"
210217 export CC=gcc
211- export CXX=gcc
218+ export CXX=g++
212219
213220 echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
214221
0 commit comments