@@ -43,11 +43,17 @@ jobs:
43
43
- " -DFLB_SANITIZE_MEMORY=On"
44
44
- " -DFLB_SANITIZE_THREAD=On"
45
45
compiler :
46
- - gcc
47
- - clang
46
+ - gcc :
47
+ cc : gcc
48
+ cxx : g++
49
+ - clang :
50
+ cc : clang
51
+ cxx : clang++
48
52
exclude :
49
53
- flb_option : " -DFLB_COVERAGE=On"
50
- compiler : clang
54
+ compiler :
55
+ cc : clang
56
+ cxx : clang++
51
57
permissions :
52
58
contents : read
53
59
steps :
64
70
repository : calyptia/fluent-bit-ci
65
71
path : ci
66
72
67
- - name : ${{ matrix.compiler }} - ${{ matrix.flb_option }}
73
+ - name : ${{ matrix.compiler.cc }} & ${{ matrix.compiler.cxx }} - ${{ matrix.flb_option }}
68
74
run : |
69
75
echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
70
76
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 90
73
79
sudo usermod -a -G systemd-journal $(id -un)
74
80
sudo -E su -p $(id -un) -c "PATH=$PATH ci/scripts/run-unit-tests.sh"
75
81
env :
76
- CC : ${{ matrix.compiler }}
77
- CXX : ${{ matrix.compiler }}
82
+ CC : ${{ matrix.compiler.cc }}
83
+ CXX : ${{ matrix.compiler.cxx }}
78
84
FLB_OPT : ${{ matrix.flb_option }}
79
85
80
86
run-macos-unit-tests :
@@ -128,7 +134,9 @@ jobs:
128
134
omit_option : " -DFLB_WITHOUT_flb-it-utils=1 -DFLB_WITHOUT_flb-it-pack=1"
129
135
global_option : " -DFLB_BACKTRACE=Off -DFLB_SHARED_LIB=Off -DFLB_DEBUG=On -DFLB_ALL=On -DFLB_EXAMPLES=Off"
130
136
unit_test_option : " -DFLB_TESTS_INTERNAL=On"
131
- compiler : gcc
137
+ compiler :
138
+ cc : gcc
139
+ cxx : g++
132
140
steps :
133
141
- name : Checkout Fluent Bit code
134
142
uses : actions/checkout@v4
@@ -163,8 +171,8 @@ jobs:
163
171
ctest -j $nparallel --build-run-dir . --output-on-failure
164
172
working-directory : build
165
173
env :
166
- CC : ${{ matrix.config.compiler }}
167
- CXX : ${{ matrix.config.compiler }}
174
+ CC : ${{ matrix.config.compiler.cc }}
175
+ CXX : ${{ matrix.config.compiler.cxx }}
168
176
169
177
run-qemu-ubuntu-unit-tests :
170
178
# We chain this after Linux one as there are CPU time costs for QEMU emulation
@@ -208,7 +216,7 @@ jobs:
208
216
export FLB_UNIT_TEST_OPTION="-DFLB_TESTS_INTERNAL=On"
209
217
export FLB_OPT="${FLB_OPTION} ${GLOBAL_OPTION} ${FLB_UNIT_TEST_OPTION} ${FLB_OMIT_OPTION}"
210
218
export CC=gcc
211
- export CXX=gcc
219
+ export CXX=g++
212
220
213
221
echo "CC = $CC, CXX = $CXX, FLB_OPT = $FLB_OPT"
214
222
0 commit comments