Python: build wheels on mac and linux

pull/73/head
Tpt 4 years ago
parent e1e6249137
commit 3906e0b87d
  1. 28
      .github/workflows/build.yml
  2. 26
      .github/workflows/release.yml

@ -65,4 +65,30 @@ jobs:
- run: source ../venv/bin/activate && sphinx-build -M doctest . build
working-directory: ./python/docs
- run: source ../venv/bin/activate && sphinx-build -M html . build
working-directory: ./python/docs
working-directory: ./python/docs
python_wheel_linux:
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:
runs-on: macos-latest
needs: python
steps:
- uses: actions/checkout@v2
- run: pip install maturin
- run: maturin build --no-sdist
working-directory: ./python
python_wheel_windows:
runs-on: windows-latest
needs: python
steps:
- uses: actions/checkout@v2
- run: pip install maturin
- run: maturin build --no-sdist
working-directory: ./python

@ -75,6 +75,32 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./target/wheels
publish_pypi_mac:
runs-on: macos-latest
needs: publish_lib_crate
steps:
- uses: actions/checkout@v2
- run: pip install maturin
- run: maturin build --release --no-sdist
working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
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: maturin build --release --no-sdist
working-directory: ./python
- uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: ./target/wheels
publish_npm:
runs-on: ubuntu-latest
steps:

Loading…
Cancel
Save