Skip to content

Commit 33e1b46

Browse files
authored
Sunset apple-silicon-m1 self-hosted runner, as now is supported by Github Hosted runners via macos-latest tag. Use macos-13 for runs on Intel macs (#3011)
1 parent db4e736 commit 33e1b46

File tree

2 files changed

+14
-31
lines changed

2 files changed

+14
-31
lines changed

.github/workflows/push.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ jobs:
110110
continue-on-error: true
111111
strategy:
112112
matrix:
113-
runs_on: [macos-latest, apple-silicon-m1]
113+
# macos-latest (ATM macos-14) runs on Apple Silicon,
114+
# macos-13 runs on Intel
115+
runs_on: ['macos-latest', 'macos-13']
114116
bootstrap:
115117
- name: sdl2
116118
target: testapps-with-numpy
@@ -124,25 +126,21 @@ jobs:
124126
steps:
125127
- name: Checkout python-for-android
126128
uses: actions/checkout@v4
129+
- name: Set up Python 3.x
130+
uses: actions/setup-python@v5
131+
with:
132+
python-version: 3.x
127133
- name: Install python-for-android
128134
run: |
129-
source ci/osx_ci.sh
130-
arm64_set_path_and_python_version 3.9.7
131135
python3 -m pip install -e .
132136
- name: Install prerequisites via pythonforandroid/prerequisites.py (Experimental)
133137
run: |
134-
source ci/osx_ci.sh
135-
arm64_set_path_and_python_version 3.9.7
136138
python3 pythonforandroid/prerequisites.py
137139
- name: Install dependencies (Legacy)
138140
run: |
139-
source ci/osx_ci.sh
140-
arm64_set_path_and_python_version 3.9.7
141141
make --file ci/makefiles/osx.mk
142142
- name: Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86)
143143
run: |
144-
source ci/osx_ci.sh
145-
arm64_set_path_and_python_version 3.9.7
146144
make ${{ matrix.bootstrap.target }}
147145
- name: Copy produced artifacts into dist/ (*.apk, *.aab)
148146
run: |
@@ -199,7 +197,9 @@ jobs:
199197
strategy:
200198
matrix:
201199
android_arch: ["arm64-v8a", "armeabi-v7a", "x86_64", "x86"]
202-
runs_on: [macos-latest, apple-silicon-m1]
200+
# macos-latest (ATM macos-14) runs on Apple Silicon,
201+
# macos-13 runs on Intel
202+
runs_on: ['macos-latest', 'macos-13']
203203
env:
204204
ANDROID_HOME: ${HOME}/.android
205205
ANDROID_SDK_ROOT: ${HOME}/.android/android-sdk
@@ -211,25 +211,21 @@ jobs:
211211
uses: actions/checkout@v4
212212
with:
213213
fetch-depth: 0
214+
- name: Set up Python 3.x
215+
uses: actions/setup-python@v5
216+
with:
217+
python-version: 3.x
214218
- name: Install python-for-android
215219
run: |
216-
source ci/osx_ci.sh
217-
arm64_set_path_and_python_version 3.9.7
218220
python3 -m pip install -e .
219221
- name: Install prerequisites via pythonforandroid/prerequisites.py (Experimental)
220222
run: |
221-
source ci/osx_ci.sh
222-
arm64_set_path_and_python_version 3.9.7
223223
python3 pythonforandroid/prerequisites.py
224224
- name: Install dependencies (Legacy)
225225
run: |
226-
source ci/osx_ci.sh
227-
arm64_set_path_and_python_version 3.9.7
228226
make --file ci/makefiles/osx.mk
229227
- name: Rebuild updated recipes
230228
run: |
231-
source ci/osx_ci.sh
232-
arm64_set_path_and_python_version 3.9.7
233229
make rebuild_updated_recipes
234230
235231
coveralls_finish:

ci/osx_ci.sh

-13
This file was deleted.

0 commit comments

Comments
 (0)