-
Notifications
You must be signed in to change notification settings - Fork 1.6k
44 lines (40 loc) · 1.2 KB
/
pr-compile-check.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
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
- name: Attempt to build current source for CentOS 7 using static config
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
build-args:
- FLB_STATIC_CONF=true