diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 4eff5d0f61..ce3f39d42e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -110,7 +110,9 @@ jobs: continue-on-error: true strategy: matrix: - runs_on: [macos-latest, apple-silicon-m1] + # macos-latest (ATM macos-14) runs on Apple Silicon, + # macos-13 runs on Intel + runs_on: ['macos-latest', 'macos-13'] bootstrap: - name: sdl2 target: testapps-with-numpy @@ -126,23 +128,15 @@ jobs: uses: actions/checkout@v4 - name: Install python-for-android run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 python3 -m pip install -e . - name: Install prerequisites via pythonforandroid/prerequisites.py (Experimental) run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 python3 pythonforandroid/prerequisites.py - name: Install dependencies (Legacy) run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 make --file ci/makefiles/osx.mk - name: Build multi-arch apk Python 3 (armeabi-v7a, arm64-v8a, x86_64, x86) run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 make ${{ matrix.bootstrap.target }} - name: Copy produced artifacts into dist/ (*.apk, *.aab) run: | @@ -199,7 +193,9 @@ jobs: strategy: matrix: android_arch: ["arm64-v8a", "armeabi-v7a", "x86_64", "x86"] - runs_on: [macos-latest, apple-silicon-m1] + # macos-latest (ATM macos-14) runs on Apple Silicon, + # macos-13 runs on Intel + runs_on: ['macos-latest', 'macos-13'] env: ANDROID_HOME: ${HOME}/.android ANDROID_SDK_ROOT: ${HOME}/.android/android-sdk @@ -213,23 +209,15 @@ jobs: fetch-depth: 0 - name: Install python-for-android run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 python3 -m pip install -e . - name: Install prerequisites via pythonforandroid/prerequisites.py (Experimental) run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 python3 pythonforandroid/prerequisites.py - name: Install dependencies (Legacy) run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 make --file ci/makefiles/osx.mk - name: Rebuild updated recipes run: | - source ci/osx_ci.sh - arm64_set_path_and_python_version 3.9.7 make rebuild_updated_recipes coveralls_finish: diff --git a/ci/osx_ci.sh b/ci/osx_ci.sh deleted file mode 100644 index 8cdd1ac1af..0000000000 --- a/ci/osx_ci.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -set -e -x - -arm64_set_path_and_python_version(){ - python_version="$1" - if [[ $(/usr/bin/arch) = arm64 ]]; then - export PATH=/opt/homebrew/bin:$PATH - eval "$(pyenv init --path)" - pyenv install $python_version -s - pyenv global $python_version - export PATH=$(pyenv prefix)/bin:$PATH - fi -} \ No newline at end of file