From 2a281c3b486728fa742890e097e64cf5ba84f382 Mon Sep 17 00:00:00 2001 From: carlosb1 Date: Sat, 2 Jul 2022 18:26:38 +0200 Subject: [PATCH] Workflow reimplementation Signed-off-by: carlosb1 --- .github/workflows/release.yml | 97 +++++++++++++++++++---------------- 1 file changed, 52 insertions(+), 45 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c1177528..1995b273 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,58 +12,65 @@ jobs: linux: runs-on: ubuntu-latest steps: - - name: Checkout the repository - uses: actions/checkout@v2 - - name: Log in to the Container registry - uses: docker/login-action@v1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - uses: messense/maturin-action@v1 - with: - manylinux: auto - command: build - args: --release -o dist - - name: Upload wheels - uses: actions/upload-artifact@v2 - with: - name: wheels - path: dist - - windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - uses: messense/maturin-action@v1 - with: - command: build - args: --release --no-sdist -o dist - - name: Upload wheels - uses: actions/upload-artifact@v2 - with: - name: wheels - path: dist + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: x64 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: messense/maturin-action@v1 + with: + maturin-version: latest + command: build + args: --release macos: runs-on: macos-latest steps: - - uses: actions/checkout@v2 - - uses: messense/maturin-action@v1 - with: - command: build - args: --release --no-sdist -o dist --universal2 - - name: Upload wheels - uses: actions/upload-artifact@v2 - with: - name: wheels - path: dist - + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: x64 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: messense/maturin-action@v1 + with: + maturin-version: latest + command: build + args: --release + windows: + runs-on: windows-latest + strategy: + matrix: + target: [x64, x86] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: ${{ matrix.target }} + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + - uses: messense/maturin-action@v1 + with: + maturin-version: latest + command: build + args: --release release: name: Release runs-on: ubuntu-latest - if: "startsWith(github.ref, 'refs/tags/')" - needs: [ macos, windows, linux ] + needs: [macos, windows, linux] steps: - uses: actions/download-artifact@v2 with: