Skip to content

Commit

Permalink
chore(ci): Fix maturin for updated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jan 2, 2024
1 parent 764c8d5 commit 5afefcc
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/maturin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
target: [x86_64, x86, aarch64]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -32,7 +36,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-linux-${{ matrix.target }}
path: dist

musllinux:
Expand All @@ -42,6 +46,10 @@ jobs:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -52,7 +60,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-musllinux-${{ matrix.target }}
path: dist

windows:
Expand All @@ -62,6 +70,10 @@ jobs:
target: [x64, x86]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -71,7 +83,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-windows-${{ matrix.target }}
path: dist

macos:
Expand All @@ -81,6 +93,10 @@ jobs:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -90,7 +106,7 @@ jobs:
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-macos-${{ matrix.target }}
path: dist

sdist:
Expand All @@ -105,7 +121,7 @@ jobs:
- name: Upload sdist
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheels-sdist
path: dist

release:
Expand All @@ -116,7 +132,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: wheels
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
Expand Down

0 comments on commit 5afefcc

Please sign in to comment.