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 f58454e commit df21434
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pr-compile-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,25 @@ 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 nparallel=$(( $(getconf _NPROCESSORS_ONLN) > 8 ? 8 : $(getconf _NPROCESSORS_ONLN) ))
cmake ../
make -j $nparallel
working-directory: build

0 comments on commit df21434

Please sign in to comment.