-
Notifications
You must be signed in to change notification settings - Fork 61
104 lines (102 loc) · 2.7 KB
/
validate.yml
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
name: validate
on:
push:
branches:
- master
pull_request:
jobs:
check-formatting:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.18
with:
source: ./Source
extensions: 'h,cpp,fos'
clangFormatVersion: 18
unit-tests:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: BuildTools/prepare-workspace.sh packages linux
- run: BuildTools/validate.sh unit-tests
code-coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: BuildTools/prepare-workspace.sh packages linux
- run: BuildTools/validate.sh code-coverage
- uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
windows:
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
app:
- win32-client
- win64-client
- win64-server
- win32-single
- win64-single
- win64-editor
- win64-mapper
- win64-ascompiler
- win64-baker
steps:
- uses: actions/checkout@v4
- run: BuildTools/validate.cmd ${{matrix.app}}
ubuntu:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
app:
- linux-client
- linux-gcc-client
- android-arm-client
- android-arm64-client
- web-client
- linux-server
- linux-gcc-server
- linux-single
- linux-gcc-single
- android-arm-single
- android-arm64-single
- web-single
- linux-editor
- linux-gcc-editor
- linux-mapper
- linux-gcc-mapper
- linux-ascompiler
- linux-gcc-ascompiler
- linux-baker
- linux-gcc-baker
steps:
- uses: actions/checkout@v4
- if: ${{startsWith(matrix.app, 'linux-')}}
run: BuildTools/prepare-workspace.sh packages linux
- if: ${{startsWith(matrix.app, 'web-')}}
run: BuildTools/prepare-workspace.sh packages web
- if: ${{startsWith(matrix.app, 'android-arm-')}}
run: BuildTools/prepare-workspace.sh packages android
- if: ${{startsWith(matrix.app, 'android-arm64-')}}
run: BuildTools/prepare-workspace.sh packages android-arm64
- if: ${{startsWith(matrix.app, 'android-x86-')}}
run: BuildTools/prepare-workspace.sh packages android-x86
- run: BuildTools/validate.sh ${{matrix.app}}
macos:
runs-on: macos-13
strategy:
fail-fast: false
matrix:
app:
- mac-client
- ios-client
- mac-single
- ios-single
steps:
- uses: actions/checkout@v4
- run: BuildTools/validate.sh ${{matrix.app}}