Skip to content

Commit c78f37f

Browse files
committed
macOS CI: ADD APK, AAB & Updated Recipes build
1 parent afd9942 commit c78f37f

File tree

1 file changed

+93
-6
lines changed

1 file changed

+93
-6
lines changed

.github/workflows/push.yml

Lines changed: 93 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
parallel: true
4848
flag-name: run-${{ matrix.os }}-${{ matrix.python-version }}
4949

50-
build_apk:
51-
name: Unit test apk
50+
ubuntu_build_apk:
51+
name: Unit test apk [ ubuntu-latest ]
5252
needs: [flake8]
5353
runs-on: ubuntu-latest
5454
steps:
@@ -75,8 +75,37 @@ jobs:
7575
name: bdist_unit_tests_app-debug-1.1-.apk
7676
path: apks
7777

78-
build_aab:
79-
name: Unit test aab
78+
macos_build_apk:
79+
name: Unit test apk [ ${{ matrix.runs_on }} ]
80+
needs: [flake8]
81+
defaults:
82+
run:
83+
shell: ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
84+
runs-on: ${{ matrix.runs_on }}
85+
strategy:
86+
matrix:
87+
include:
88+
- runs_on: macos-latest
89+
- runs_on: apple-silicon-m1
90+
run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
91+
env:
92+
ANDROID_HOME: ${HOME}/.android
93+
ANDROID_SDK_ROOT: ${HOME}/.android/android-sdk
94+
ANDROID_SDK_HOME: ${HOME}/.android/android-sdk
95+
ANDROID_NDK_HOME: ${HOME}/.android/android-ndk
96+
steps:
97+
- name: Checkout python-for-android
98+
uses: actions/checkout@v2
99+
- name: Install dependencies
100+
run: |
101+
brew install autoconf automake libtool openssl pkg-config
102+
make --file ci/makefiles/osx.mk
103+
- name: Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
104+
run: |
105+
make testapps-with-numpy
106+
107+
ubuntu_build_aab:
108+
name: Unit test aab [ ubuntu-latest ]
80109
needs: [flake8]
81110
runs-on: ubuntu-latest
82111
steps:
@@ -103,8 +132,37 @@ jobs:
103132
name: bdist_unit_tests_app-release-1.1-.aab
104133
path: aabs
105134

106-
rebuild_updated_recipes:
107-
name: Test updated recipes
135+
macos_build_aab:
136+
name: Unit test aab [ ${{ matrix.runs_on }} ]
137+
needs: [flake8]
138+
defaults:
139+
run:
140+
shell: ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
141+
runs-on: ${{ matrix.runs_on }}
142+
strategy:
143+
matrix:
144+
include:
145+
- runs_on: macos-latest
146+
- runs_on: apple-silicon-m1
147+
run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
148+
env:
149+
ANDROID_HOME: ${HOME}/.android
150+
ANDROID_SDK_ROOT: ${HOME}/.android/android-sdk
151+
ANDROID_SDK_HOME: ${HOME}/.android/android-sdk
152+
ANDROID_NDK_HOME: ${HOME}/.android/android-ndk
153+
steps:
154+
- name: Checkout python-for-android
155+
uses: actions/checkout@v2
156+
- name: Install dependencies
157+
run: |
158+
brew install autoconf automake libtool openssl pkg-config
159+
make --file ci/makefiles/osx.mk
160+
- name: Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
161+
run: |
162+
make testapps-with-numpy-aab
163+
164+
ubuntu_rebuild_updated_recipes:
165+
name: Test updated recipes [ ubuntu-latest ]
108166
needs: [flake8]
109167
runs-on: ubuntu-latest
110168
steps:
@@ -128,6 +186,35 @@ jobs:
128186
run: |
129187
make docker/run/make/rebuild_updated_recipes
130188
189+
macos_rebuild_updated_recipes:
190+
name: Test updated recipes [ ${{ matrix.runs_on }} ]
191+
needs: [flake8]
192+
defaults:
193+
run:
194+
shell: ${{ matrix.run_wrapper || 'bash --noprofile --norc -eo pipefail {0}' }}
195+
runs-on: ${{ matrix.runs_on }}
196+
strategy:
197+
matrix:
198+
include:
199+
- runs_on: macos-latest
200+
- runs_on: apple-silicon-m1
201+
run_wrapper: arch -arm64 bash --noprofile --norc -eo pipefail {0}
202+
env:
203+
ANDROID_HOME: ${HOME}/.android
204+
ANDROID_SDK_ROOT: ${HOME}/.android/android-sdk
205+
ANDROID_SDK_HOME: ${HOME}/.android/android-sdk
206+
ANDROID_NDK_HOME: ${HOME}/.android/android-ndk
207+
steps:
208+
- name: Checkout python-for-android
209+
uses: actions/checkout@v2
210+
- name: Install dependencies
211+
run: |
212+
brew install autoconf automake libtool openssl pkg-config
213+
make --file ci/makefiles/osx.mk
214+
- name: Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
215+
run: |
216+
make rebuild_updated_recipes
217+
131218
coveralls_finish:
132219
needs: test
133220
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)