-
Notifications
You must be signed in to change notification settings - Fork 108
164 lines (159 loc) · 7.14 KB
/
build_push.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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
name: build push
on:
push:
branches:
- '**'
paths-ignore:
- docs/**
- '**/*.md'
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc13, clang15]
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Building (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -build'
- name: Running unit tests (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -unit_test'
- name: Running regression tests (release-x86)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x86 -regression_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -clean_only'
- name: Building (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -build'
- name: Running unit tests (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -unit_test'
- name: Running regression tests (release-x64)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -regression_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -clean_only'
- name: Building (release-x64 nosimd)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -nosimd -build'
- name: Running unit tests (release-x64 nosimd)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -nosimd -unit_test'
- name: Running regression tests (release-x64 nosimd)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -nosimd -regression_test'
- name: Clean
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -clean_only'
- name: Building (release-x64 AVX)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -avx -build'
- name: Running unit tests (release-x64 AVX)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -avx -unit_test'
- name: Running regression tests (release-x64 AVX)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-lunar:v1
with:
args: 'python3 make.py -ci -compiler ${{ matrix.compiler }} -config Release -cpu x64 -avx -regression_test'
osx-14:
runs-on: macos-14
strategy:
matrix:
compiler: [xcode15]
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Setup ${{ matrix.compiler }} compiler
run: ./tools/setup_osx_compiler.sh ${{ matrix.compiler }}
- name: Building (release-arm64)
run: python3 make.py -ci -compiler osx -config Release -build
- name: Running unit tests (release-arm64)
run: python3 make.py -ci -compiler osx -config Release -unit_test
- name: Running regression tests (release-arm64)
run: python3 make.py -ci -compiler osx -config Release -regression_test
- name: Clean
run: python3 make.py -ci -clean_only
- name: Building (release-arm64 nosimd)
run: python3 make.py -ci -compiler osx -config Release -nosimd -build
- name: Running unit tests (release-arm64 nosimd)
run: python3 make.py -ci -compiler osx -config Release -nosimd -unit_test
- name: Running regression tests (release-arm64 nosimd)
run: python3 make.py -ci -compiler osx -config Release -nosimd -regression_test
- name: Clean
run: python3 make.py -ci -clean_only
- name: Building for iOS (release-arm64)
run: python3 make.py -ci -compiler ios -config Release -build
- name: Clean
run: python3 make.py -ci -clean_only
- name: Building for iOS (release-arm64 nosimd)
run: python3 make.py -ci -compiler ios -config Release -build -nosimd
emscripten:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build (release)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-linux-emscripten:v1
with:
args: 'python3 make.py -ci -compiler emscripten -config release -build'
- name: Unit tests (release)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-linux-emscripten:v1
with:
args: 'python3 make.py -ci -compiler emscripten -config release -unit_test'
- name: Regression tests (release)
uses: docker://ghcr.io/nfrechette/toolchain-amd64-linux-emscripten:v1
with:
args: 'python3 make.py -ci -compiler emscripten -config release -regression_test'
vs2022:
runs-on: windows-2022
strategy:
matrix:
compiler: [vs2022, vs2022-clang]
build_config: [debug, release]
cpu: [x86, x64, arm64]
simd: [-simd, -nosimd, -avx]
exclude:
# Don't run arm64 with clang
- compiler: vs2022-clang
cpu: arm64
# Don't run AVX with arm64
- cpu: arm64
simd: -avx
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Building (${{ matrix.build_config }}-${{ matrix.cpu }})
run: python3 make.py -ci -compiler ${{ matrix.compiler }} -config ${{ matrix.build_config }} -cpu ${{ matrix.cpu }} -build ${{ matrix.simd }}
- name: Running unit tests (${{ matrix.build_config }}-${{ matrix.cpu }})
run: python3 make.py -ci -compiler ${{ matrix.compiler }} -config ${{ matrix.build_config }} -cpu ${{ matrix.cpu }} -unit_test ${{ matrix.simd }}
- name: Running regression tests (${{ matrix.build_config }}-${{ matrix.cpu }})
if: ${{ matrix.build_config == 'release' }}
run: python3 make.py -ci -compiler ${{ matrix.compiler }} -config ${{ matrix.build_config }} -cpu ${{ matrix.cpu }} -regression_test ${{ matrix.simd }}