Skip to content

Commit 2339d95

Browse files
committed
testing
1 parent 5e74313 commit 2339d95

File tree

1 file changed

+25
-39
lines changed

1 file changed

+25
-39
lines changed

.github/workflows/push.yml

Lines changed: 25 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ jobs:
6060
name: Unit test apk [ ${{ matrix.runs_on }} ]
6161
needs: [flake8]
6262
runs-on: ${{ matrix.runs_on }}
63+
continue-on-error: true
6364
strategy:
6465
matrix:
66+
bootstrap:
67+
- name: sdl2
68+
target: testapps-with-numpy
69+
- name: webview
70+
target: testapps-webview
6571
include:
6672
- runs_on: ubuntu-latest
6773
steps:
@@ -79,30 +85,18 @@ jobs:
7985
- name: Pull docker image
8086
run: |
8187
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)
9589
run: |
9690
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
9993
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
10296
uses: actions/upload-artifact@v1
10397
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 }}
106100

107101
macos_build_apk:
108102
name: Unit test apk [ ${{ matrix.runs_on }} ]
@@ -113,6 +107,11 @@ jobs:
113107
runs-on: ${{ matrix.runs_on }}
114108
strategy:
115109
matrix:
110+
bootstrap:
111+
- name: sdl2
112+
target: testapps-with-numpy
113+
- name: webview
114+
target: testapps-webview
116115
include:
117116
- runs_on: macos-latest
118117
- runs_on: apple-silicon-m1
@@ -141,32 +140,19 @@ jobs:
141140
arm64_set_path_and_python_version 3.9.7
142141
brew install autoconf automake libtool openssl pkg-config
143142
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)
145144
run: |
146145
source ci/osx_ci.sh
147146
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
150149
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
166152
uses: actions/upload-artifact@v1
167153
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 }}
170156

171157
ubuntu_build_aab:
172158
name: Unit test aab [ ${{ matrix.runs_on }} ]

0 commit comments

Comments
 (0)