Skip to content

Commit

Permalink
chore: update upload/download actions
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Feb 4, 2024
1 parent 58f8b54 commit c2a0124
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
sccache: "true"
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ github.job }}-${{ matrix.target }}
path: dist

windows:
Expand All @@ -54,17 +54,19 @@ jobs:
args: --release --out dist
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ github.job }}-${{ matrix.target }}
path: dist

macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
target: [x86_64, aarch64]
target:
- aarch64
- x86_64
steps:
- uses: actions/checkout@v4
- name: Build wheels
Expand All @@ -74,9 +76,9 @@ jobs:
args: --release --out dist
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ github.job }}-${{ matrix.target }}
path: dist

sdist:
Expand All @@ -89,9 +91,9 @@ jobs:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-${{ github.job }}
path: dist

release:
Expand All @@ -100,9 +102,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: wheels
merge-multiple: true
path: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down

0 comments on commit c2a0124

Please sign in to comment.