bindings: pset: finalize #6
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
on: | |
push: | |
branches: | |
- master | |
pull_request: {} | |
name: Build python wheels on mac and windows | |
jobs: | |
osx-wheels: | |
strategy: | |
matrix: | |
os: ["macos-13", "macos-14"] # 13 -> x86_64, 14 -> arm64 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/[email protected] | |
with: | |
components: "clippy,rust-src,rustfmt" # required by maturin build | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- run: python3 -m pip install maturin | |
- run: python3 -m pip install uniffi-bindgen==0.28.0 # must be the same version as the dep in lwk_bindings/Cargo.toml | |
- run: maturin build --release -m lwk_bindings/Cargo.toml -b uniffi | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: osx-wheel-${{ matrix.os }} | |
path: target/wheels | |
windows-wheels: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/[email protected] | |
with: | |
components: "clippy,rust-src,rustfmt" # required by maturin build | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- run: python3 -m pip install maturin | |
- run: python3 -m pip install uniffi-bindgen==0.28.0 # must be the same version as the dep in lwk_bindings/Cargo.toml | |
- run: maturin build --release -m lwk_bindings/Cargo.toml -b uniffi | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: windows-wheels | |
path: target/wheels | |