Skip to content

Commit

Permalink
fix wheels uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Apr 22, 2024
1 parent d549c09 commit 1d0714a
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
os: ["ubuntu-22.04", "windows-2022", "macos-14"]
arch: ["x86_64", "arm64", "AMD64"]
exclude:
- os: ubuntu-latest
- os: ubuntu-22.04
arch: arm64
- os: ubuntu-latest
- os: ubuntu-22.04
arch: AMD64
- os: windows-latest
- os: windows-2022
arch: arm64
- os: windows-latest
- os: windows-2022
arch: x86_64
- os: macos-latest
- os: macos-14
arch: AMD64

steps:
Expand All @@ -34,7 +34,7 @@ jobs:
fetch-depth: 0

- name: "Building ${{ matrix.os }} (${{ matrix.arch }}) wheels"
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.17.0
env:
# Skips pypy py36,37
CIBW_SKIP: "pp* cp36-* cp37-*"
Expand All @@ -47,9 +47,9 @@ jobs:
python -m pip install check-manifest cython pytest pytest-cov &&
python -m pytest -vv {package}/test
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: pypi-artifacts
name: pypi-artifacts-${{ matrix.os }}-${{ matrix.arch }}
path: ${{ github.workspace }}/wheelhouse/*.whl


Expand All @@ -71,12 +71,13 @@ jobs:
show-artifacts:
needs: [build_bdist, build_sdist]
name: "Show artifacts"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: pypi-artifacts
pattern: pypi-artifacts*
path: ${{ github.workspace }}/dist
merge-multiple: true

- shell: bash
run: |
Expand All @@ -86,14 +87,15 @@ jobs:
publish-artifacts-pypi:
needs: [build_bdist, build_sdist]
name: "Publish to PyPI"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
# upload to PyPI for every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: pypi-artifacts
pattern: pypi-artifacts*
path: ${{ github.workspace }}/dist
merge-multiple: true

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

0 comments on commit 1d0714a

Please sign in to comment.