29 lines
742 B
YAML
29 lines
742 B
YAML
on: push
|
|
env:
|
|
PYTHON_VERSION: 3.7
|
|
RUST_TOOLCHAIN: nightly
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
name: Build Rust Extension for ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4.0.0
|
|
with:
|
|
python-version: ${{env.PYTHON_VERSION}}
|
|
cache: pip
|
|
- name: Install Rust toolchain
|
|
uses: actions-rs/toolchain@v1.0.6
|
|
with:
|
|
toolchain: ${{env.RUST_TOOLCHAIN}}
|
|
profile: minimal
|
|
default: true
|
|
- name: Build Python Extension
|
|
run: |
|
|
python -m build .
|