Skip to content

Commit

Permalink
build: upgrade cbuildwheel and upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed May 21, 2024
1 parent f92cee4 commit d379aec
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
python -m build --sdist
twine check --strict dist/*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*
name: cibw-sdist
path: dist/*.tar.gz

build_wheels:
name: wheel on ${{ matrix.os }}
Expand All @@ -41,24 +42,14 @@ jobs:
steps:
- uses: actions/checkout@v4

# see https://github.com/pypa/cibuildwheel/issues/933
# - uses: pypa/cibuildwheel@v2

# Used to host cibuildwheel
- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: install cibuildwheel
run: python -m pip install cibuildwheel==2.15.0

- name: build wheels
run: python -m cibuildwheel --output-dir wheelhouse
uses: pypa/cibuildwheel@v2.18.1

- name: upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: wheelhouse/*.whl
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

publish_dev_build:
needs: [build_sdist, build_wheels]
Expand All @@ -73,10 +64,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: cibw-*
path: dist
merge-multiple: true

- name: publish to test pypi
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down Expand Up @@ -120,8 +112,9 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: artifact
pattern: cibw-*
path: dist
merge-multiple: true

- name: publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit d379aec

Please sign in to comment.