diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 593979df..a9c6bd0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.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 \ No newline at end of file + 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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b7d836f..9048144a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: