Skip to content

Commit

Permalink
workflows: add sanity check for toolchains w/ CXX support
Browse files Browse the repository at this point in the history
Fluent-bit is written in C, so don't require CXX,
also not from the libs.

Signed-off-by: Thomas Devoogdt <[email protected]>
  • Loading branch information
ThomasDevoogdt committed Aug 25, 2024
1 parent 47402c3 commit a3c1402
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pr-compile-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,26 @@ jobs:
run: |
ldd ./bin/fluent-bit
working-directory: build

# Sanity check for compilation w/ CXX support
pr-compile-without-cxx:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
steps:
- name: Setup environment
run: |
sudo apt-get update
sudo apt-get install -y bison cmake flex gcc libssl-dev libyaml-dev
- name: Checkout Fluent Bit code
uses: actions/checkout@v4

- name: Compile w/ CXX support
run: |
export CXX=/bin/false
export nparallel=$(( $(getconf _NPROCESSORS_ONLN) > 8 ? 8 : $(getconf _NPROCESSORS_ONLN) ))
cmake ../
make -j $nparallel
working-directory: build

0 comments on commit a3c1402

Please sign in to comment.