Merge pull request #24 from rainj-me/master #81
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: Rust Build with Maturin | |
on: [push, pull_request] | |
jobs: | |
build-linux: | |
name: Build Rust Project on Linux | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/pyo3/maturin | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout code | |
- name: Build with Maturin | |
run: | | |
yum update -y | |
yum install -y openssl openssl-devel | |
rustup default stable | |
maturin build --release --features py --out dist | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: wheels-linux | |
path: dist/* | |
build-macos-arm: | |
name: Build Rust Project on macOS Arm | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout code | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
- name: Install Maturin | |
run: | | |
python -m pip install maturin | |
- name: Build with Maturin | |
run: | | |
maturin build --release --features py --out dist | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: wheels-macos-arm | |
path: dist/* | |
build-macos-x86: | |
name: Build Rust Project on macOS x86 | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
name: Checkout code | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
default: true | |
profile: minimal | |
- name: Install Maturin | |
run: | | |
python -m pip install maturin | |
- name: Build with Maturin | |
run: | | |
maturin build --release --features py --out dist | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: wheels-macos-x86 | |
path: dist/* |