Skip to content

Commit

Permalink
config: test build with FLB_HAVE_STATIC_CONF
Browse files Browse the repository at this point in the history
  • Loading branch information
bglimepoint committed Jun 5, 2024
1 parent 0ac9ee0 commit 044dcce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/pr-compile-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,20 @@ jobs:
push: false
load: false
provenance: false

pr-compile-static-config:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout Fluent Bit code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Attempt to build current source with FLB_STATIC_CONF enabled
working-directory: packaging
run: ./build.sh
env:
FLB_DISTRO: ubuntu/20.04
FLB_ARG: --build-arg=FLB_STATIC_CONF=yes
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ RUN cmake -DFLB_RELEASE=On \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
-DFLB_LOG_NO_CONTROL_CHARS=On \
-DFLB_CHUNK_TRACE="$FLB_CHUNK_TRACE" \
${FLB_STATIC_CONF:+-DFLB_STATIC_CONF=/tmp} \
..

RUN make -j "$(getconf _NPROCESSORS_ONLN)"
Expand Down

0 comments on commit 044dcce

Please sign in to comment.