2022-06-15
This commit is contained in:
parent
652609ca71
commit
972e2c2900
9 changed files with 68 additions and 30 deletions
28
.github/workflow/build.yml
vendored
Normal file
28
.github/workflow/build.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
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 .
|
Loading…
Add table
Add a link
Reference in a new issue