Skip to content

Commit 90633af

Browse files
workflows: add sanity check for toolchains w/ CXX support
Fluent-bit is written in C, so don't require CXX, also not from the libs. Signed-off-by: Thomas Devoogdt <[email protected]>
1 parent 286466f commit 90633af

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pr-compile-check.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,34 @@ jobs:
120120
echo "$ldd_result" | grep libmsgpack
121121
echo "$ldd_result" | grep librdkafka
122122
working-directory: build
123+
124+
# Sanity check for compilation w/ CXX support
125+
pr-compile-without-cxx:
126+
runs-on: ubuntu-24.04
127+
timeout-minutes: 60
128+
strategy:
129+
fail-fast: false
130+
matrix:
131+
cmake_version:
132+
- "3.31.6"
133+
steps:
134+
- name: Setup environment
135+
run: |
136+
sudo apt-get update
137+
sudo apt-get install -y bison cmake flex gcc libssl-dev libyaml-dev
138+
139+
- name: Install cmake
140+
uses: jwlawson/actions-setup-cmake@v2
141+
with:
142+
cmake-version: "${{ matrix.cmake_version }}"
143+
144+
- name: Checkout Fluent Bit code
145+
uses: actions/checkout@v5
146+
147+
- name: Compile w/ CXX support
148+
run: |
149+
export CXX=/bin/false
150+
export nparallel=$(( $(getconf _NPROCESSORS_ONLN) > 8 ? 8 : $(getconf _NPROCESSORS_ONLN) ))
151+
cmake ../
152+
make -j $nparallel
153+
working-directory: build

0 commit comments

Comments
 (0)