@@ -2,6 +2,10 @@ name: Unit tests & build apps
2
2
3
3
on : ['push', 'pull_request']
4
4
5
+ env :
6
+ APK_ARTIFACT_FILENAME : bdist_unit_tests_app-debug-1.1-.apk
7
+ AAB_ARTIFACT_FILENAME : bdist_unit_tests_app-release-1.1-.aab
8
+
5
9
jobs :
6
10
7
11
flake8 :
48
52
flag-name : run-${{ matrix.os }}-${{ matrix.python-version }}
49
53
50
54
ubuntu_build_apk :
51
- name : Unit test apk [ ubuntu-latest ]
55
+ name : Unit test apk [ ${{ matrix.runs_on }} ]
52
56
needs : [flake8]
53
- runs-on : ubuntu-latest
57
+ runs-on : ${{ matrix.runs_on }}
58
+ strategy :
59
+ matrix :
60
+ include :
61
+ - runs_on : ubuntu-latest
54
62
steps :
55
63
- name : Checkout python-for-android
56
64
uses : actions/checkout@v2
70
78
run : |
71
79
mkdir -p apks
72
80
make docker/run/make/with-artifact/apk/testapps-with-numpy
81
+ - name : Rename artifact to include the build platform name
82
+ run : |
83
+ mv apks/${{ env.APK_ARTIFACT_FILENAME }} apks/${{ matrix.runs_on }}-${{ env.APK_ARTIFACT_FILENAME }}
73
84
- uses : actions/upload-artifact@v1
74
85
with :
75
- name : bdist_unit_tests_app-debug-1.1-.apk
86
+ name : ${{ matrix.runs_on }}-${{ env.APK_ARTIFACT_FILENAME }}
76
87
path : apks
77
88
78
89
macos_build_apk :
@@ -107,11 +118,22 @@ jobs:
107
118
source ci/osx_ci.sh
108
119
arm64_set_path_and_python_version 3.9.7
109
120
make testapps-with-numpy
121
+ - name : Rename artifact to include the build platform name
122
+ run : |
123
+ mv testapps/on_device_unit_tests/${{ env.APK_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ env.APK_ARTIFACT_FILENAME }}
124
+ - uses : actions/upload-artifact@v1
125
+ with :
126
+ name : ${{ matrix.runs_on }}-${{ env.APK_ARTIFACT_FILENAME }}
127
+ path : ${{ matrix.runs_on }}-${{ env.APK_ARTIFACT_FILENAME }}
110
128
111
129
ubuntu_build_aab :
112
- name : Unit test aab [ ubuntu-latest ]
130
+ name : Unit test aab [ ${{ matrix.runs_on }} ]
113
131
needs : [flake8]
114
- runs-on : ubuntu-latest
132
+ runs-on : ${{ matrix.runs_on }}
133
+ strategy :
134
+ matrix :
135
+ include :
136
+ - runs_on : ubuntu-latest
115
137
steps :
116
138
- name : Checkout python-for-android
117
139
uses : actions/checkout@v2
@@ -131,9 +153,12 @@ jobs:
131
153
run : |
132
154
mkdir -p aabs
133
155
make docker/run/make/with-artifact/aab/testapps-with-numpy-aab
156
+ - name : Rename artifact to include the build platform name
157
+ run : |
158
+ mv aabs/${{ env.AAB_ARTIFACT_FILENAME }} aabs/${{ matrix.runs_on }}-${{ env.AAB_ARTIFACT_FILENAME }}
134
159
- uses : actions/upload-artifact@v1
135
160
with :
136
- name : bdist_unit_tests_app-release-1.1-.aab
161
+ name : ${{ matrix.runs_on }}-${{ env.AAB_ARTIFACT_FILENAME }}
137
162
path : aabs
138
163
139
164
macos_build_aab :
@@ -163,11 +188,18 @@ jobs:
163
188
arm64_set_path_and_python_version 3.9.7
164
189
brew install autoconf automake libtool openssl pkg-config
165
190
make --file ci/makefiles/osx.mk
166
- - name : Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
191
+ - name : Build multi-arch aab Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
167
192
run : |
168
193
source ci/osx_ci.sh
169
194
arm64_set_path_and_python_version 3.9.7
170
195
make testapps-with-numpy-aab
196
+ - name : Rename artifact to include the build platform name
197
+ run : |
198
+ mv testapps/on_device_unit_tests/${{ env.AAB_ARTIFACT_FILENAME }} ${{ matrix.runs_on }}-${{ env.AAB_ARTIFACT_FILENAME }}
199
+ - uses : actions/upload-artifact@v1
200
+ with :
201
+ name : ${{ matrix.runs_on }}-${{ env.AAB_ARTIFACT_FILENAME }}
202
+ path : ${{ matrix.runs_on }}-${{ env.AAB_ARTIFACT_FILENAME }}
171
203
172
204
ubuntu_rebuild_updated_recipes :
173
205
name : Test updated recipes [ ubuntu-latest ]
0 commit comments