summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/.github/workflows/pr-compile-check.yaml
blob: d9f3dc92ab5716f44ebee992445cfd8319582bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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