From 95335440d067eae44c5aecd85e9ef964f2a83147 Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Sun, 10 Sep 2023 13:54:30 +0900 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 130b754..e153496 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,17 +30,20 @@ jobs: strategy: matrix: include: - - target: armv7-unknown-linux-gnueabihf - os: ubuntu-latest - - target: aarch64-unknown-linux-gnu - os: ubuntu-latest - - target: aarch64-apple-darwin - os: macos-latest + # - target: armv7-unknown-linux-gnueabihf + # os: ubuntu-latest + # - target: aarch64-unknown-linux-gnu + # os: ubuntu-latest + # - target: aarch64-apple-darwin + # os: macos-latest - target: x86_64-unknown-linux-gnu + platform: linux os: ubuntu-latest - target: x86_64-apple-darwin + platform: macos os: macos-latest - target: x86_64-pc-windows-msvc + platform: windows os: windows-latest # - target: i686-pc-windows-msvc # os: windows-latest @@ -53,13 +56,14 @@ jobs: - name: setup-tools run: | rustup update stable - pip3 install twine build - # rustup target add ${{ matrix.target }} + pip3 install twine build cibuildwheel + rustup target add ${{ matrix.target }} - name: upload run: | - cargo build --release - python3 -m build --wheel - twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} dist/* + cargo build --release --target ${{ matrix.target }} + cibuildwheel --output-dir dist --platform ${{ matrix.platform }} + twine upload -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --skip-existing dist/* + # python3 -m build --wheel # maturin publish -u mtshiba -p ${{ secrets.PYPI_PASSWORD }} --target ${{ matrix.target }} --skip-existing upload-assets: needs: create-release