Skip to content

Commit

Permalink
Improve: Separate slow aarch64 emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
ymd-h committed Dec 8, 2024
1 parent a07e986 commit 617f3c3
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,43 @@ jobs:
cache-dependency-glob: |
**/pyproject.toml
**/setup.py
- if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
- run: uvx -p 3.12 cibuildwheel
shell: bash
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.runs-on }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
build_aarch64:
needs: readme
strategy:
matrix:
py: ['3.9', '3.10', '3.11', '3.12', '3.13']
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: README
path: README
- run: mv README/README.md README.md
- uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/pyproject.toml
**/setup.py
- uses: docker/setup-qemu-action@v3
with:
platforms: all
- run: uvx -p 3.12 cibuildwheel
shell: bash
env:
CIBW_ARCHS_LINUX: auto aarch64
CIBW_BUILD: ${{'cp'}}${{ matrix.py }}${{'-????linux_*64'}}
CIBW_ARCHS_LINUX: aarch64
- uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.runs-on }}-${{ strategy.job-index }}
name: dist-aarch64-${{ matrix.py }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
build_targz:
needs: readme
Expand All @@ -70,7 +96,7 @@ jobs:
name: dist-sdist
path: dist/*.tar.gz
upload:
needs: [build_wheel, build_targz]
needs: [build_wheel, build_aarch64, build_targz]
environment: pypi
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 617f3c3

Please sign in to comment.