Skip to content

Commit a3c1402

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 47402c3 commit a3c1402

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
@@ -73,3 +73,26 @@ jobs:
7373
run: |
7474
ldd ./bin/fluent-bit
7575
working-directory: build
76+
77+
# Sanity check for compilation w/ CXX support
78+
pr-compile-without-cxx:
79+
runs-on: ubuntu-latest
80+
timeout-minutes: 60
81+
strategy:
82+
fail-fast: false
83+
steps:
84+
- name: Setup environment
85+
run: |
86+
sudo apt-get update
87+
sudo apt-get install -y bison cmake flex gcc libssl-dev libyaml-dev
88+
89+
- name: Checkout Fluent Bit code
90+
uses: actions/checkout@v4
91+
92+
- name: Compile w/ CXX support
93+
run: |
94+
export CXX=/bin/false
95+
export nparallel=$(( $(getconf _NPROCESSORS_ONLN) > 8 ? 8 : $(getconf _NPROCESSORS_ONLN) ))
96+
cmake ../
97+
make -j $nparallel
98+
working-directory: build

0 commit comments

Comments
 (0)