Python: attempt to fix wheel build in CI

pull/76/head
Tpt 4 years ago
parent 24b0dce4fd
commit 61296a466e
  1. 5
      .github/workflows/build.yml
  2. 7
      .github/workflows/release.yml

@ -74,6 +74,7 @@ jobs:
needs: python needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin build - run: docker run --rm -v $(pwd):/io konstin2/maturin build
working-directory: ./python working-directory: ./python
@ -82,8 +83,8 @@ jobs:
needs: python needs: python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: pip install maturin - run: pip3 install maturin
- run: maturin build --no-sdist - run: python3 -m maturin build --no-sdist
working-directory: ./python working-directory: ./python
python_wheel_windows: python_wheel_windows:

@ -68,20 +68,21 @@ jobs:
needs: publish_lib_crate needs: publish_lib_crate
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: sed -i 's/path="..\/lib", //g' python/Cargo.toml
- run: docker run --rm -v $(pwd):/io konstin2/maturin build --release - run: docker run --rm -v $(pwd):/io konstin2/maturin build --release
working-directory: ./python working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1 - uses: pypa/gh-action-pypi-publish@v1.4.1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_PASSWORD }} password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./target/wheels packages_dir: ./python/target/wheels
publish_pypi_mac: publish_pypi_mac:
runs-on: macos-latest runs-on: macos-latest
needs: publish_lib_crate needs: publish_lib_crate
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: pip install maturin - run: pip3 install maturin
- run: maturin build --release --no-sdist - run: python3 -m maturin build --release --no-sdist
working-directory: ./python working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1 - uses: pypa/gh-action-pypi-publish@v1.4.1
with: with:

Loading…
Cancel
Save