diff --git a/.github/workflows/release-wheels.yml b/.github/workflows/release-wheels.yml index 95dc10f..3a389b9 100644 --- a/.github/workflows/release-wheels.yml +++ b/.github/workflows/release-wheels.yml @@ -3,9 +3,9 @@ name: release-deploy on: release: types: [ published ] - # push: - # branches: [ main ] - # pull_request: + push: + branches: [ main ] + pull_request: jobs: build-sdist: @@ -157,7 +157,7 @@ jobs: run: | python -m pip install -U pip python -m pip install -U setuptools-rust - python -m pip install cibuildwheel==2.16.2 + python -m pip install cibuildwheel>=2.23 - name: Build wheels env: @@ -167,8 +167,8 @@ jobs: CIBW_MANYLINUX_I686_IMAGE: ${{ matrix.manylinux_image }} CIBW_BUILD_VERBOSITY: 1 CIBW_BEFORE_ALL: | - curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && rustup target add i686-pc-windows-msvc && rustup target add aarch64-apple-darwin - CIBW_ENVIRONMENT: 'PATH="$PATH:$HOME/.cargo/bin"' + curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y && rustup target add i686-pc-windows-msvc && rustup target add aarch64-apple-darwin && rustup target add x86_64-apple-darwin + CIBW_ENVIRONMENT: PATH="$PATH:$HOME/.cargo/bin" MACOSX_DEPLOYMENT_TARGET='10.12' run: | python --version python -m cibuildwheel --output-dir dist @@ -233,22 +233,22 @@ jobs: # The pypi upload fails with non-linux containers, so grab the uploaded # artifacts and run using those # See: https://github.com/pypa/gh-action-pypi-publish/discussions/15 - deploy: - name: Upload wheels to PyPI - needs: [ test-package ] - runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/project/pylibjpeg-rle/ - permissions: - id-token: write - - steps: - - name: Download the wheels - uses: actions/download-artifact@v4 - with: - path: dist/ - merge-multiple: true - - - name: Publish package to PyPi - uses: pypa/gh-action-pypi-publish@release/v1 + # deploy: + # name: Upload wheels to PyPI + # needs: [ test-package ] + # runs-on: ubuntu-latest + # environment: + # name: pypi + # url: https://pypi.org/project/pylibjpeg-rle/ + # permissions: + # id-token: write + # + # steps: + # - name: Download the wheels + # uses: actions/download-artifact@v4 + # with: + # path: dist/ + # merge-multiple: true + # + # - name: Publish package to PyPi + # uses: pypa/gh-action-pypi-publish@release/v1