-
Notifications
You must be signed in to change notification settings - Fork 44
149 lines (129 loc) · 4.59 KB
/
sil-kit-ci.yml
File metadata and controls
149 lines (129 loc) · 4.59 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: "CI for Pull Requests"
on:
pull_request:
branches: [ 'main' ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
check-licenses:
name: License checks for SIL Kit sources
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Install Dependencies
id: dep-install
run: |
sudo apt install licensecheck
- name: Check Licenses
id: license-check
run: |
sh ./SilKit/ci/check_licenses.sh
shell: bash
check-run-builds:
runs-on: ubuntu-22.04
outputs:
run_builds: ${{ steps.build_check.outputs.run_builds }}
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Check if build CI should run
id: build_check
run: |
if [[ ${{ github.event_name }} == 'push' ]];then \
echo "run_builds=true" >> $GITHUB_OUTPUT; \
else \
python3 ./SilKit/ci/check_files_changed.py ${{ github.repository }} ${{ github.event.number }}; \
fi
check-dco-signed:
name: 🦙 DCO Signing Check
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Check if DCO is signed
run:
python3 ./SilKit/ci/check_dco_signed.py ${{ github.repository }} ${{ github.event.number }}
check-formatting:
name: Format checks for SIL Kit sources
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: false
- name: Check Formatting
id: formatting-check
run: |
python3 ./SilKit/ci/check_formatting.py --dryrun pr ${{ github.event.number }} ${{ github.repository }}
shell: bash
clang-tidy:
name: Running clang-tidy
runs-on: ubuntu-latest
needs: [check-run-builds, check-dco-signed]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Run clang-tidy
id: clang-tidy
run: |
mkdir _o
export CC=clang && export CXX=clang++
cmake -S . -B build_tidy -GNinja -DSILKIT_BUILD_DASHBOARD=OFF -DSILKIT_BUILD_DEMOS=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
python3 ./SilKit/ci/silkit_clang_tidy.py build_tidy/ _o/
shell: bash
- name: Artifact
id: artifact
uses: actions/upload-artifact@v4
with:
name: clang_tidy_reports
path: |
./_o/*.yaml
retention-days: 1
clang14-tsan:
name: Thread Sanitizer Tests
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
uses: ./.github/workflows/linux-tsan.yml
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
clang14-ubsan:
name: Undefined Behavior Sanitizer Tests
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
uses: ./.github/workflows/linux-ubsan.yml
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
clang14-asan:
name: Address Sanitizer Tests
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
uses: ./.github/workflows/linux-asan.yml
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
ubuntu-release-builds:
uses: ./.github/workflows/build-linux.yml
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
ubuntu-arm-release-builds:
uses: ./.github/workflows/build-linux-arm64.yml
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
windows-release-builds:
uses: ./.github/workflows/build-win.yml
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
mingw-release-builds:
uses: ./.github/workflows/build-mingw64.yml
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}
macos-release-builds:
uses: ./.github/workflows/build-macos.yml
needs: [check-licenses, check-run-builds, check-formatting, check-dco-signed]
with:
run_build: ${{ needs.check-run-builds.outputs.run_builds == 'true' }}