From 5afefcc3c134fd473a6341a70f3361076c1a89a8 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 2 Jan 2024 15:50:34 -0600 Subject: [PATCH] chore(ci): Fix maturin for updated actions --- .github/workflows/maturin.yml | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maturin.yml b/.github/workflows/maturin.yml index 96a3fcc..e40984a 100644 --- a/.github/workflows/maturin.yml +++ b/.github/workflows/maturin.yml @@ -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: @@ -32,7 +36,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-linux-${{ matrix.target }} path: dist musllinux: @@ -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: @@ -52,7 +60,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-musllinux-${{ matrix.target }} path: dist windows: @@ -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: @@ -71,7 +83,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-windows-${{ matrix.target }} path: dist macos: @@ -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: @@ -90,7 +106,7 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-macos-${{ matrix.target }} path: dist sdist: @@ -105,7 +121,7 @@ jobs: - name: Upload sdist uses: actions/upload-artifact@v4 with: - name: wheels + name: wheels-sdist path: dist release: @@ -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: