60
60
name : Unit test apk [ ${{ matrix.runs_on }} ]
61
61
needs : [flake8]
62
62
runs-on : ${{ matrix.runs_on }}
63
+ continue-on-error : true
63
64
strategy :
64
65
matrix :
66
+ bootstrap :
67
+ - name : sdl2
68
+ target : testapps-with-numpy
69
+ - name : webview
70
+ target : testapps-webview
65
71
include :
66
72
- runs_on : ubuntu-latest
67
73
steps :
@@ -79,30 +85,18 @@ jobs:
79
85
- name : Pull docker image
80
86
run : |
81
87
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)
88
+ - name : Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
95
89
run : |
96
90
mkdir -p apks
97
- make docker/run/make/with-artifact/apk/testapps-webview
98
- - name : Rename webview artifact to include the build platform name
91
+ make docker/run/make/with-artifact/apk/${{ matrix.bootstrap.target }}
92
+ - name : Rename apk artifact to include the build platform name
99
93
run : |
100
- mv apks/${{ env.APK_ARTIFACT_FILENAME }} apks/${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
101
- - name : Upload webview apk artifact
94
+ mv apks/${{ env.APK_ARTIFACT_FILENAME }} apks/${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
95
+ - name : Upload apk artifact
102
96
uses : actions/upload-artifact@v1
103
97
with :
104
- name : ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
105
- path : apks/${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
98
+ name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
99
+ path : apks/${{ matrix.runs_on }}-${{ matrix.bootsrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
106
100
107
101
macos_build_apk :
108
102
name : Unit test apk [ ${{ matrix.runs_on }} ]
@@ -113,6 +107,11 @@ jobs:
113
107
runs-on : ${{ matrix.runs_on }}
114
108
strategy :
115
109
matrix :
110
+ bootstrap :
111
+ - name : sdl2
112
+ target : testapps-with-numpy
113
+ - name : webview
114
+ target : testapps-webview
116
115
include :
117
116
- runs_on : macos-latest
118
117
- runs_on : apple-silicon-m1
@@ -141,32 +140,19 @@ jobs:
141
140
arm64_set_path_and_python_version 3.9.7
142
141
brew install autoconf automake libtool openssl pkg-config
143
142
make --file ci/makefiles/osx.mk
144
- - name : Build multi-arch sdl2 apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
143
+ - name : Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
145
144
run : |
146
145
source ci/osx_ci.sh
147
146
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
147
+ make ${{ matrix.bootstrap.target }}
148
+ - name : Rename apk artifact to include the build platform name
150
149
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)
158
- run : |
159
- source ci/osx_ci.sh
160
- arm64_set_path_and_python_version 3.9.7
161
- make testapps-webview
162
- - name : Rename webview artifact to include the build platform name
163
- 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
150
+ mv testapps/on_device_unit_tests/${{ env.APK_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
151
+ - name : Upload apk artifact
166
152
uses : actions/upload-artifact@v1
167
153
with :
168
- name : ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
169
- path : ${{ matrix.runs_on }}-${{ env.WEBVIEW_APK_ARTIFACT_FILENAME }}
154
+ name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
155
+ path : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-${{ env.APK_ARTIFACT_FILENAME }}
170
156
171
157
ubuntu_build_aab :
172
158
name : Unit test aab [ ${{ matrix.runs_on }} ]
0 commit comments