Skip to content

Commit d734a74

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 5ec8973 commit d734a74

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

0 commit comments

Comments
 (0)