Update create-osx-bundle.sh
, introduce prepare-wheels.py
to merge non-universal2 wheels.
#101
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS Test | |
on: | |
push: | |
paths: | |
- 'osx/**' | |
- '.github/workflows/test_macos.yaml' | |
pull_request: | |
paths: | |
- 'osx/**' | |
- '.github/workflows/test_macos.yaml' | |
jobs: | |
build_dmg: | |
runs-on: ${{ matrix.runs_on }} | |
strategy: | |
matrix: | |
runs_on: ['macos-latest', 'apple-silicon-m1'] | |
name: macOS build dmg ( ${{ matrix.runs_on }} ) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install Platypus | |
run: | | |
source ci/osx_ci.sh | |
install_platypus | |
- name: Install build dependencies | |
run: | | |
brew install pkg-config cmake ninja | |
- name: Create macOS App Bundle with extras [dev] | |
run: | | |
source ci/osx_ci.sh | |
cd osx | |
./create-osx-bundle.sh -e "dev" | |
- name: Test Fix bundle metadata | |
run: | | |
source ci/osx_ci.sh | |
cd osx | |
./fix-bundle-metadata.sh build/Kivy.app -v "1.2.3" | |
./fix-bundle-metadata.sh build/Kivy.app -v "master" | |
- name: Test Relocation | |
run: | | |
source ci/osx_ci.sh | |
cd osx | |
./relocate.sh build/Kivy.app | |
- name: Test dmg creation and store it in osx_artifacts | |
run: | | |
source ci/osx_ci.sh | |
cd osx | |
./create-osx-dmg.sh build/Kivy.app Kivy | |
cd .. | |
mkdir osx_artifacts | |
mv osx/Kivy.dmg osx_artifacts/${{ matrix.runs_on }}-Kivy.dmg | |
- name: Upload dmg as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: KivySDKPackager | |
path: osx_artifacts | |
test_dmg: | |
needs: build_dmg | |
runs-on: ${{ matrix.runs_on }} | |
strategy: | |
matrix: | |
runs_on: ['macos-latest', 'apple-silicon-m1'] | |
name: macOS test dmg ( ${{ matrix.runs_on }} ) | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download dmg from artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: KivySDKPackager | |
path: osx_artifacts | |
- name: Mount build from macos-latest runner on apple-silicon-m1 runner | |
if: ${{ matrix.runs_on == 'apple-silicon-m1' }} | |
run: hdiutil attach osx_artifacts/macos-latest-Kivy.dmg -mountroot . | |
- name: Mount build from apple-silicon-m1n runner on macos-latest runner | |
if: ${{ matrix.runs_on != 'apple-silicon-m1' }} | |
run: hdiutil attach osx_artifacts/apple-silicon-m1-Kivy.dmg -mountroot . | |
- name: Copy Kivy.app to Applications | |
run: cp -R Kivy/Kivy.app /Applications/Kivy.app | |
- name: Activate Kivy.app venv and test kivy | |
run: | | |
source ci/osx_ci.sh | |
activate_app_venv_and_test_kivy |