From 044dccef65d483c768b680feff37c7ccee5f0167 Mon Sep 17 00:00:00 2001 From: Bryce Gibson Date: Wed, 5 Jun 2024 15:00:17 +1000 Subject: [PATCH] config: test build with FLB_HAVE_STATIC_CONF --- .github/workflows/pr-compile-check.yaml | 17 +++++++++++++++++ dockerfiles/Dockerfile | 1 + 2 files changed, 18 insertions(+) diff --git a/.github/workflows/pr-compile-check.yaml b/.github/workflows/pr-compile-check.yaml index d9f3dc92ab5..6ee83449f8e 100644 --- a/.github/workflows/pr-compile-check.yaml +++ b/.github/workflows/pr-compile-check.yaml @@ -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 diff --git a/dockerfiles/Dockerfile b/dockerfiles/Dockerfile index 367b460fbf5..cf0283cc304 100644 --- a/dockerfiles/Dockerfile +++ b/dockerfiles/Dockerfile @@ -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)"