Simplifies Python wheel build on CI

pull/84/head
Tpt 4 years ago
parent 82381e21a9
commit 06bf362ffe
  1. 14
      .github/workflows/build.yml

@ -69,25 +69,17 @@ jobs:
- run: source ../venv/bin/activate && sphinx-build -M html . build - run: source ../venv/bin/activate && sphinx-build -M html . build
working-directory: ./python/docs working-directory: ./python/docs
python_wheel_linux: python_wheel:
runs-on: ubuntu-latest
needs: python
steps:
- uses: actions/checkout@v2
- run: docker run --rm -v $(pwd):/io konstin2/maturin build
working-directory: ./python
python_wheel_mac_windows:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
needs: python needs: python
strategy: strategy:
matrix: matrix:
os: [ macos-latest, windows-latest ] os: [ ubuntu-latest, macos-latest, windows-latest ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.6 python-version: 3.6
- run: pip install maturin - run: pip install maturin
- run: maturin build --no-sdist - run: maturin build
working-directory: ./python working-directory: ./python

Loading…
Cancel
Save