@@ -5,10 +5,6 @@ on: ['push', 'pull_request']
5
5
env :
6
6
APK_ARTIFACT_FILENAME : bdist_unit_tests_app-debug-1.1-.apk
7
7
AAB_ARTIFACT_FILENAME : bdist_unit_tests_app-release-1.1-.aab
8
- SDL2_APK_ARTIFACT_FILENAME : sdl2_bdist_unit_tests_app-debug-1.1-.apk
9
- SDL2_AAB_ARTIFACT_FILENAME : sdl2_bdist_unit_tests_app-release-1.1-.aab
10
- WEBVIEW_APK_ARTIFACT_FILENAME : webview_bdist_unit_tests_app-debug-1.1-.apk
11
- WEBVIEW_AAB_ARTIFACT_FILENAME : webview_bdist_unit_tests_app-release-1.1-.aab
12
8
PYTHONFORANDROID_PREREQUISITES_INSTALL_INTERACTIVE : 0
13
9
14
10
jobs :
@@ -57,11 +53,17 @@ jobs:
57
53
flag-name : run-${{ matrix.os }}-${{ matrix.python-version }}
58
54
59
55
ubuntu_build_apk :
60
- name : Unit test apk [ ${{ matrix.runs_on }} ]
56
+ name : Unit test apk [ ${{ matrix.runs_on }} | ${{ matrix.bootstrap.name }} ]
61
57
needs : [flake8]
62
58
runs-on : ${{ matrix.runs_on }}
59
+ continue-on-error : true
63
60
strategy :
64
61
matrix :
62
+ bootstrap :
63
+ - name : sdl2
64
+ target : testapps-with-numpy
65
+ - name : webview
66
+ target : testapps-webview
65
67
include :
66
68
- runs_on : ubuntu-latest
67
69
steps :
@@ -79,40 +81,34 @@ jobs:
79
81
- name : Pull docker image
80
82
run : |
81
83
make docker/pull
82
- - name : Build multi-arch sdl2 apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
83
- run : |
84
- mkdir -p apks
85
- make docker/run/make/with-artifact/apk/testapps-with-numpy
86
- - name : Rename sdl2 apk artifact to include the build platform name
87
- run : |
88
- mv apks/${{ env.APK_ARTIFACT_FILENAME }} apks/${{ matrix.runs_on }}-${{ env.SDL2_APK_ARTIFACT_FILENAME }}
89
- - name : Upload sdl2 apk artifact
90
- uses : actions/upload-artifact@v1
91
- with :
92
- name : ${{ matrix.runs_on }}-${{ env.SDL2_APK_ARTIFACT_FILENAME }}
93
- path : apks/${{ matrix.runs_on }}-${{ env.SDL2_APK_ARTIFACT_FILENAME }}
94
- - name : Build multi-arch webview apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
84
+ - name : Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
95
85
run : |
96
86
mkdir -p apks
97
- make docker/run/make/with-artifact/apk/testapps-webview
98
- - name : Rename webview artifact to include the build platform name
87
+ make docker/run/make/with-artifact/apk/${{ matrix.bootstrap.target }}
88
+ - name : Rename apk artifact to include the build platform name
99
89
run : |
100
- mv apks/${{ env.APK_ARTIFACT_FILENAME }} apks/${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
101
- - name : Upload webview apk artifact
90
+ mv apks/${{ env.APK_ARTIFACT_FILENAME }} apks/${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
91
+ - name : Upload apk artifact
102
92
uses : actions/upload-artifact@v1
103
93
with :
104
- name : ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
105
- path : apks/${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
94
+ name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
95
+ path : apks/${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
106
96
107
97
macos_build_apk :
108
- name : Unit test apk [ ${{ matrix.runs_on }} ]
98
+ name : Unit test apk [ ${{ matrix.runs_on }} | ${{ matrix.bootstrap.name }} ]
109
99
needs : [flake8]
110
100
defaults :
111
101
run :
112
102
shell : ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
113
103
runs-on : ${{ matrix.runs_on }}
104
+ continue-on-error : true
114
105
strategy :
115
106
matrix :
107
+ bootstrap :
108
+ - name : sdl2
109
+ target : testapps-with-numpy
110
+ - name : webview
111
+ target : testapps-webview
116
112
include :
117
113
- runs_on : macos-latest
118
114
- runs_on : apple-silicon-m1
@@ -141,39 +137,32 @@ jobs:
141
137
arm64_set_path_and_python_version 3.9.7
142
138
brew install autoconf automake libtool openssl pkg-config
143
139
make --file ci/makefiles/osx.mk
144
- - name : Build multi-arch sdl2 apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
145
- run : |
146
- source ci/osx_ci.sh
147
- arm64_set_path_and_python_version 3.9.7
148
- make testapps-with-numpy
149
- - name : Rename sdl2 artifact to include the build platform name
150
- run : |
151
- mv testapps/on_device_unit_tests/${{ env.APK_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ env.SDL2_APK_ARTIFACT_FILENAME }}
152
- - name : Upload sdl2 apk artifact
153
- uses : actions/upload-artifact@v1
154
- with :
155
- name : ${{ matrix.runs_on }}-${{ env.SDL2_APK_ARTIFACT_FILENAME }}
156
- path : ${{ matrix.runs_on }}-${{ env.SDL2_APK_ARTIFACT_FILENAME }}
157
- - name : Build multi-arch webview apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
140
+ - name : Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
158
141
run : |
159
142
source ci/osx_ci.sh
160
143
arm64_set_path_and_python_version 3.9.7
161
- make testapps-webview
162
- - name : Rename webview artifact to include the build platform name
144
+ make ${{ matrix.bootstrap.target }}
145
+ - name : Rename apk artifact to include the build platform name
163
146
run : |
164
- mv testapps/on_device_unit_tests/${{ env.APK_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
165
- - name : Upload webview apk artifact
147
+ mv testapps/on_device_unit_tests/${{ env.APK_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
148
+ - name : Upload apk artifact
166
149
uses : actions/upload-artifact@v1
167
150
with :
168
- name : ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
169
- path : ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
151
+ name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
152
+ path : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
170
153
171
154
ubuntu_build_aab :
172
155
name : Unit test aab [ ${{ matrix.runs_on }} ]
173
156
needs : [flake8]
174
157
runs-on : ${{ matrix.runs_on }}
158
+ continue-on-error : true
175
159
strategy :
176
160
matrix :
161
+ bootstrap :
162
+ - name : sdl2
163
+ target : testapps-with-numpy-aab
164
+ - name : webview
165
+ target : testapps-webview-aab
177
166
include :
178
167
- runs_on : ubuntu-latest
179
168
steps :
@@ -191,40 +180,34 @@ jobs:
191
180
- name : Pull docker image
192
181
run : |
193
182
make docker/pull
194
- - name : Build sdl2 Android App Bundle Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
183
+ - name : Build Android App Bundle Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
195
184
run : |
196
185
mkdir -p aabs
197
- make docker/run/make/with-artifact/aab/testapps-with-numpy-aab
198
- - name : Rename sdl2 artifact to include the build platform name
186
+ make docker/run/make/with-artifact/aab/${{ matrix.bootstrap.target }}
187
+ - name : Rename artifact to include the build platform name
199
188
run : |
200
- mv aabs/${{ env.AAB_ARTIFACT_FILENAME }} aabs/${{ matrix.runs_on }}-${{ env.SDL2_AAB_ARTIFACT_FILENAME }}
201
- - name : Upload sdl2 apk artifact
189
+ mv aabs/${{ env.AAB_ARTIFACT_FILENAME }} aabs/${{ matrix.runs_on }}-${{ matrix.bootstrap.name}}-${{ env.AAB_ARTIFACT_FILENAME }}
190
+ - name : Upload apk artifact
202
191
uses : actions/upload-artifact@v1
203
192
with :
204
- name : ${{ matrix.runs_on }}-${{ env.SDL2_AAB_ARTIFACT_FILENAME }}
205
- path : aabs/${{ matrix.runs_on }}-${{ env.SDL2_AAB_ARTIFACT_FILENAME }}
206
- - name : Build webview Android App Bundle Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
207
- run : |
208
- mkdir -p aabs
209
- make docker/run/make/with-artifact/aab/testapps-webview-aab
210
- - name : Rename webview artifact to include the build platform name
211
- run : |
212
- mv aabs/${{ env.AAB_ARTIFACT_FILENAME }} aabs/${{ matrix.runs_on }}-${{ env.WEBVIEW_AAB_ARTIFACT_FILENAME }}
213
- - name : Upload webview apk artifact
214
- uses : actions/upload-artifact@v1
215
- with :
216
- name : ${{ matrix.runs_on }}-${{ env.WEBVIEW_AAB_ARTIFACT_FILENAME }}
217
- path : aabs/${{ matrix.runs_on }}-${{ env.WEBVIEW_AAB_ARTIFACT_FILENAME }}
193
+ name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name}}-${{ env.AAB_ARTIFACT_FILENAME }}
194
+ path : aabs/${{ matrix.runs_on }}-${{ matrix.bootstrap.name}}-${{ env.AAB_ARTIFACT_FILENAME }}
218
195
219
196
macos_build_aab :
220
- name : Unit test aab [ ${{ matrix.runs_on }} ]
197
+ name : Unit test aab [ ${{ matrix.runs_on }} | ${{ matrix.bootstrap.name }} ]
221
198
needs : [flake8]
222
199
defaults :
223
200
run :
224
201
shell : ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
225
202
runs-on : ${{ matrix.runs_on }}
203
+ continue-on-error : true
226
204
strategy :
227
205
matrix :
206
+ bootstrap :
207
+ - name : sdl2
208
+ target : testapps-with-numpy-aab
209
+ - name : webview
210
+ target : testapps-webview-aab
228
211
include :
229
212
- runs_on : macos-latest
230
213
- runs_on : apple-silicon-m1
@@ -257,28 +240,15 @@ jobs:
257
240
run : |
258
241
source ci/osx_ci.sh
259
242
arm64_set_path_and_python_version 3.9.7
260
- make testapps-with-numpy-aab
243
+ make ${{ matrix.bootstrap.target }}
261
244
- name : Rename sdl2 artifact to include the build platform name
262
245
run : |
263
- mv testapps/on_device_unit_tests/${{ env.AAB_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ env.SDL2_AAB_ARTIFACT_FILENAME }}
246
+ mv testapps/on_device_unit_tests/${{ env.AAB_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.AAB_ARTIFACT_FILENAME }}
264
247
- name : Upload sdl2 apk artifact
265
248
uses : actions/upload-artifact@v1
266
249
with :
267
- name : ${{ matrix.runs_on }}-${{ env.SDL2_AAB_ARTIFACT_FILENAME }}
268
- path : ${{ matrix.runs_on }}-${{ env.SDL2_AAB_ARTIFACT_FILENAME }}
269
- - name : Build multi-arch webview aab Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
270
- run : |
271
- source ci/osx_ci.sh
272
- arm64_set_path_and_python_version 3.9.7
273
- make testapps-webview-aab
274
- - name : Rename webview artifact to include the build platform name
275
- run : |
276
- mv testapps/on_device_unit_tests/${{ env.AAB_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ env.WEBVIEW_AAB_ARTIFACT_FILENAME }}
277
- - name : Upload webview apk artifact
278
- uses : actions/upload-artifact@v1
279
- with :
280
- name : ${{ matrix.runs_on }}-${{ env.WEBVIEW_AAB_ARTIFACT_FILENAME }}
281
- path : ${{ matrix.runs_on }}-${{ env.WEBVIEW_AAB_ARTIFACT_FILENAME }}
250
+ name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.AAB_ARTIFACT_FILENAME }}
251
+ path : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.AAB_ARTIFACT_FILENAME }}
282
252
283
253
ubuntu_rebuild_updated_recipes :
284
254
name : Test updated recipes for arch ${{ matrix.android_arch }} [ ubuntu-latest ]
0 commit comments