Skip to content

Commit c56a9ce

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 ed18b11 commit c56a9ce

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
@@ -82,3 +82,26 @@ jobs:
8282
run: |
8383
ldd ./bin/fluent-bit
8484
working-directory: build
85+
86+
# Sanity check for compilation w/ CXX support
87+
pr-compile-without-cxx:
88+
runs-on: ubuntu-latest
89+
timeout-minutes: 60
90+
strategy:
91+
fail-fast: false
92+
steps:
93+
- name: Setup environment
94+
run: |
95+
sudo apt-get update
96+
sudo apt-get install -y bison cmake flex gcc libssl-dev libyaml-dev
97+
98+
- name: Checkout Fluent Bit code
99+
uses: actions/checkout@v4
100+
101+
- name: Compile w/ CXX support
102+
run: |
103+
export CXX=/bin/false
104+
export nparallel=$(( $(getconf _NPROCESSORS_ONLN) > 8 ? 8 : $(getconf _NPROCESSORS_ONLN) ))
105+
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DFLB_UNICODE_ENCODER=OFF ../
106+
make -j $nparallel
107+
working-directory: build

0 commit comments

Comments
 (0)