Skip to content

Add job queue to process requests (#13) #67

Add job queue to process requests (#13)

Add job queue to process requests (#13) #67

Workflow file for this run

name: Build Python wheels
on: [push, pull_request]
jobs:
builds:
strategy:
fail-fast: false
matrix:
os: ["windows-latest", "ubuntu-20.04", "macos-latest"]
pyversion: ["3.7", "3.8", "3.9", "3.10", "3.11"]
name: Run ${{ matrix.os }} build for Python ${{ matrix.pyversion }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Setup rust toolchain
if: matrix.os == 'ubuntu-20.04'
run: |
rustup target add x86_64-unknown-linux-gnu
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyversion }}
- name: Install maturin
run: |
python -m pip install --upgrade pip
pip install maturin
pip install ziglang
- name: Install MacOS target only for universal build
if: matrix.os == 'macos-latest'
run: rustup target add aarch64-apple-darwin
- name: Build wheel for macos
if: matrix.os == 'macos-latest'
run: |
maturin build -i python --target universal2-apple-darwin
- name: Build wheel for linux
if: matrix.os == 'ubuntu-20.04'
run: |
maturin build --target x86_64-unknown-linux-gnu -i python --zig
- name: Build wheels
if: matrix.os == 'windows-latest'
run: |
maturin build -i python