diff options
Diffstat (limited to 'src/fluent-bit/.github/workflows/pr-compile-check.yaml')
-rw-r--r-- | src/fluent-bit/.github/workflows/pr-compile-check.yaml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/fluent-bit/.github/workflows/pr-compile-check.yaml b/src/fluent-bit/.github/workflows/pr-compile-check.yaml new file mode 100644 index 000000000..d9f3dc92a --- /dev/null +++ b/src/fluent-bit/.github/workflows/pr-compile-check.yaml @@ -0,0 +1,32 @@ +name: 'Pull requests compile checks' +on: + pull_request: + # Only trigger if there is a code change or a CMake change that (could) affect code + paths: + - '**.c' + - '**.h' + - 'CMakeLists.txt' + - 'cmake/*' + workflow_dispatch: + +jobs: + # Sanity check for compilation using older compiler on CentOS 7 + pr-compile-centos-7: + 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 for CentOS 7 + uses: docker/build-push-action@v5 + with: + context: . + file: ./dockerfiles/Dockerfile.centos7 + # No need to use after this so discard completely + push: false + load: false + provenance: false |