Use maturin
as a build backend and improve github workflows
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dry-run Publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
# TODO: remove | |
pull_request: | |
branches: [main] | |
jobs: | |
build_wheels: | |
# TODO: switch to main | |
uses: dottxt-ai/outlines-core/.github/workflows/build_wheels.yml@maturin | |
dry_run: | |
needs: build_wheels | |
name: Dry-run for publishing to PyPI and crates.io | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v4 | |
with: | |
pattern: wheels-* | |
merge-multiple: true | |
path: dist | |
- uses: actions/download-artifact@v4 | |
with: | |
name: sdist | |
path: dist | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Dry-run publish to crates.io | |
run: cargo publish --dry-run |