Skip to content

Commit

Permalink
Update pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Dec 2, 2023
1 parent 740ce0d commit 0207424
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,13 @@ on:
tags:
- "*"

# Cython-3.0.6-cp310-cp310-macosx_10_9_x86_64.whl
# Cython-3.0.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
# Cython-3.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
# Cython-3.0.6-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
# Cython-3.0.6-cp310-cp310-musllinux_1_1_aarch64.whl
# Cython-3.0.6-cp310-cp310-musllinux_1_1_x86_64.whl
# Cython-3.0.6-cp310-cp310-win32.whl
# Cython-3.0.6-cp310-cp310-win_amd64.whl

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-11, macos-latest]
arch: [main, alt]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -90,6 +80,17 @@ jobs:
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=nightly --profile=minimal -y &&
rustup show
# See Poetry note here: https://cibuildwheel.readthedocs.io/en/stable/faq/#how-to-cross-compile
# It explains why wheels have be re-tagged for macos
- run: pip install wheel==0.40
if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'
# create pendulum-2.1.2-cp311-cp311-macosx_12_0_arm64.whl
- run: wheel tags --platform-tag macosx_12_0_arm64 ./wheelhouse/pendulum-2.1.2-cp311-cp311-macosx_12_0_x86_64.whl
if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'
# remove the incorrectly tagged arm64 wheel
- run: rm ./wheelhouse/pendulum-2.1.2-cp311-cp311-macosx_12_0_x86_64.whl
if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
Expand Down

0 comments on commit 0207424

Please sign in to comment.