Skip to content

Commit

Permalink
Onbly build wheels for 64bit archs
Browse files Browse the repository at this point in the history
  • Loading branch information
rmjarvis committed Mar 11, 2024
1 parent 1d0b695 commit a4b87ec
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_BUILD: "*manylinux*"
CIBW_SKIP: cp36* pp*
CIBW_SKIP: "cp36* cp37* pp* *i686"
CIBW_BEFORE_ALL_LINUX: yum install -y libffi-devel || true

- uses: actions/upload-artifact@v4
- name: Upload manylinux wheels
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: whl-manylinux

build_musl_wheels:
name: Build wheels on musl linux
Expand All @@ -35,13 +37,15 @@ jobs:
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_BUILD: "*musllinux*"
CIBW_SKIP: cp36* pp*
CIBW_SKIP: "cp36* cp37* pp* *i686"
# I think musl always uses apk, but it doesn't seem to need ffi installed, so this works.
CIBW_BEFORE_ALL_LINUX: yum install -y libffi-devel || true

- uses: actions/upload-artifact@v4
- name: Upload musllinux wheels
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: whl-musllinux

build_macosx_wheels:
name: Build wheels on macosx
Expand All @@ -53,12 +57,14 @@ jobs:
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_BUILD: "*macosx*"
CIBW_SKIP: cp36* pp*
CIBW_SKIP: "cp36* cp37* pp* *i686"
CIBW_BEFORE_ALL_MACOS: brew install libffi || true

- uses: actions/upload-artifact@v4
- name: Upload macosx wheels
uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: whl-macosx

build_sdist:
name: Build sdist and upload to PyPI
Expand All @@ -80,9 +86,11 @@ jobs:
pip install -U -r requirements.txt
- name: Download wheels
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ./wheels
pattern: whl-*
merge-multiple: true

- name: Build sdist
run: |
Expand All @@ -94,9 +102,7 @@ jobs:
run: |
echo ls -l wheels
ls -l wheels
echo ls -l wheels/artifact
ls -l wheels/artifact
cp wheels/artifact/*.whl dist
cp wheels/*.whl dist
echo ls -l dist
ls -l dist
Expand Down

0 comments on commit a4b87ec

Please sign in to comment.