Skip to content

Commit a6c9ca9

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 e1a194d commit a6c9ca9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,26 @@ jobs:
102102
echo "$ldd_result" | grep libsqlite3
103103
echo "$ldd_result" | grep libzstd
104104
working-directory: build
105+
106+
# Sanity check for compilation w/ CXX support
107+
pr-compile-without-cxx:
108+
runs-on: ubuntu-22.04
109+
timeout-minutes: 60
110+
strategy:
111+
fail-fast: false
112+
steps:
113+
- name: Setup environment
114+
run: |
115+
sudo apt-get update
116+
sudo apt-get install -y bison cmake flex gcc libssl-dev libyaml-dev
117+
118+
- name: Checkout Fluent Bit code
119+
uses: actions/checkout@v4
120+
121+
- name: Compile w/ CXX support
122+
run: |
123+
export CXX=/bin/false
124+
export nparallel=$(( $(getconf _NPROCESSORS_ONLN) > 8 ? 8 : $(getconf _NPROCESSORS_ONLN) ))
125+
cmake ../
126+
make -j $nparallel
127+
working-directory: build

0 commit comments

Comments
 (0)