Fix subdirectory name #9
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: Build | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ['3.13-dev'] | |
build-host: | |
- 'arm64-apple-ios' | |
- 'arm64-apple-ios-simulator' | |
- 'x86_64-apple-ios-simulator' | |
steps: | |
- name: Checkout ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
id: py | |
with: | |
python-version: ${{ matrix.python-version }} | |
check-latest: true | |
- name: Download Python ${{ matrix.python-version }} source code | |
run: | | |
curl -o Python.tgz $(python ./geturl.py) | |
tar -xzf Python.tgz | |
- name: Add iOS/Resources/bin to PATH | |
working-directory: Python-${{ steps.py.outputs.python-version }} | |
run: | | |
echo "${{ github.workspace }}/Python/iOS/Resources/bin" >> $GITHUB_PATH | |
- name: Configure | |
working-directory: Python-${{ steps.py.outputs.python-version }} | |
run: > | |
./configure | |
--enable-framework="./iOS/Frameworks/main/" | |
--host=${{ matrix.build-host }} | |
--build=arm64-apple-darwin | |
--with-build-python="${{ steps.py.outputs.python-path }}" | |
- name: Build Python.framework | |
working-directory: Python-${{ steps.py.outputs.python-version }} | |
run: | | |
make | |
make install | |
- name: Create an archive | |
working-directory: Python-${{ steps.py.outputs.python-version }} | |
run: > | |
tar -czf | |
./iOS/Frameworks/dist/Python.framework.tar.gz | |
./iOS/Frameworks/dist/Python.framework |