-
Notifications
You must be signed in to change notification settings - Fork 47
85 lines (69 loc) · 1.87 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build
on: [push, pull_request, workflow_dispatch]
jobs:
coding_style:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install dependency
run: |
sudo apt update
sudo apt install \
clang-format-14 \
git
- name: Check with clang-format
run: |
./scripts/format_code.py
git --no-pager diff --exit-code
build_archlinux:
name: Build with Archlinux container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Change diff
run: git --no-pager show -m "$GITHUB_SHA" --color
- name: Docker Action
uses: ./.github/actions/archlinux
build_debian:
name: Build with Debian container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Change diff
run: git --no-pager show -m "$GITHUB_SHA" --color
- name: Docker Action
uses: ./.github/actions/debian
build_centos8:
name: Build with CentOS 8 container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Change diff
run: git --no-pager show -m "$GITHUB_SHA" --color
- name: Docker Action
uses: ./.github/actions/centos8
build_almalinux:
name: Build with AlmaLinux container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Change diff
run: git --no-pager show -m "$GITHUB_SHA" --color
- name: Docker Action
uses: ./.github/actions/almalinux