Skip to content

Commit a16ad8a

Browse files
committed
Updated the wheel-building action for PyPI release.
1 parent 99abf16 commit a16ad8a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/pypi-test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,25 @@ jobs:
4444
runs-on: ${{ matrix.os }}
4545
strategy:
4646
matrix:
47-
os: [ubuntu-20.04, macos-11] # at some point get this to work on windows-2019
47+
# macos-13 is an intel runner, higher macos's are apple silicon
48+
# At some point, maybe get this to work on windows-latest
49+
os: [ubuntu-latest, macos-13, macos-latest]
4850

4951
steps:
50-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5153
with:
5254
submodules: true
5355

5456
- name: Build wheels
5557
uses: pypa/cibuildwheel@v2.22.0
5658
env:
57-
CIBW_ARCHS_MACOS: x86_64 arm64
58-
CIBW_ARCHS_LINUX: x86_64 # remove this later so we build for all linux archs
59-
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.8"
59+
CIBW_ARCHS_LINUX: x86_64 aarch64
60+
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9"
6061
CIBW_SKIP: pp*
6162

6263
- uses: actions/upload-artifact@v4
6364
with:
65+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
6466
path: ./wheelhouse/*.whl
6567

6668
build_sdist:
@@ -76,6 +78,7 @@ jobs:
7678

7779
- uses: actions/upload-artifact@v4
7880
with:
81+
name: cibw-sdist
7982
path: dist/*.tar.gz
8083

8184
upload_pypi:
@@ -88,10 +91,9 @@ jobs:
8891
steps:
8992
- uses: actions/download-artifact@v4
9093
with:
91-
# unpacks default artifact into dist/
92-
# if `name: artifact` is omitted, the action will create extra parent dir
93-
name: artifact
94+
pattern: cibw-*
9495
path: dist
96+
merge-multiple: true
9597

9698
- uses: pypa/gh-action-pypi-publish@v1.12.2
9799
with:

0 commit comments

Comments
 (0)