Skip to content

Commit

Permalink
CI/CD: Align workflow with latest cibuildwheel example
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnp committed Feb 3, 2024
1 parent a136fd6 commit d4e165d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-12]
os: [ubuntu-22.04, windows-2022, macos-11]

steps:
- uses: actions/checkout@v4
Expand All @@ -22,6 +22,7 @@ jobs:

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

build_sdist:
Expand All @@ -37,6 +38,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: ./dist/*.tar.gz

upload_pypi:
Expand All @@ -46,8 +48,10 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true

- uses: pypa/[email protected]
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-12]
os: [ubuntu-22.04, windows-2022, macos-11]

steps:
- uses: actions/checkout@v4
Expand All @@ -24,6 +24,7 @@ jobs:

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

build_sdist:
Expand All @@ -39,6 +40,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: ./dist/*.tar.gz

upload_pypi:
Expand All @@ -48,8 +50,10 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true

- uses: pypa/[email protected]
with:
Expand Down

0 comments on commit d4e165d

Please sign in to comment.