Python: attempt to fix wheel build in CI

pull/76/head
Tpt 4 years ago
parent 61296a466e
commit 250505909f
  1. 2
      .github/dependabot.yml
  2. 19
      .github/workflows/build.yml
  3. 25
      .github/workflows/release.yml

@ -15,7 +15,7 @@ updates:
schedule: schedule:
interval: daily interval: daily
- package-ecosystem: gitsubmodule - package-ecosystem: gitsubmodule
directory: "/testsuite/rdf-tests" directory: "/"
schedule: schedule:
interval: daily interval: daily
- package-ecosystem: docker - package-ecosystem: docker

@ -78,20 +78,17 @@ jobs:
- 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
python_wheel_mac: python_wheel_mac_windows:
runs-on: macos-latest runs-on: ${{ matrix.os }}
needs: python
steps:
- uses: actions/checkout@v2
- run: pip3 install maturin
- run: python3 -m maturin build --no-sdist
working-directory: ./python
python_wheel_windows:
runs-on: windows-latest
needs: python needs: python
strategy:
matrix:
os: [ macos-latest, windows-latest ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.6
- run: pip install maturin - run: pip install maturin
- run: maturin build --no-sdist - run: maturin build --no-sdist
working-directory: ./python working-directory: ./python

@ -63,7 +63,7 @@ jobs:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: cargo publish - run: cargo publish
working-directory: ./wikibase working-directory: ./wikibase
publish_pypi: publish_pypi_linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: publish_lib_crate needs: publish_lib_crate
steps: steps:
@ -76,24 +76,17 @@ jobs:
user: __token__ user: __token__
password: ${{ secrets.PYPI_PASSWORD }} password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./python/target/wheels packages_dir: ./python/target/wheels
publish_pypi_mac: publish_pypi_mac_windows:
runs-on: macos-latest runs-on: ${{ matrix.os }}
needs: publish_lib_crate needs: python
strategy:
matrix:
os: [ macos-latest, windows-latest ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: pip3 install maturin - uses: actions/setup-python@v2
- run: python3 -m maturin build --release --no-sdist
working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1
with: with:
user: __token__ python-version: 3.6
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./target/wheels
publish_pypi_windows:
runs-on: windows-latest
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
- run: pip install maturin - run: pip install maturin
- run: maturin build --release --no-sdist - run: maturin build --release --no-sdist
working-directory: ./python working-directory: ./python

Loading…
Cancel
Save