Skip to content

build wheels for differnt platforms. #30

build wheels for differnt platforms.

build wheels for differnt platforms. #30

Workflow file for this run

name: BuildWheels
on: [pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_TEST_REQUIRES: pytest pytest_asyncio
CIBW_TEST_COMMAND: "pytest {project}/tests"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10"
CIBW_BEFORE_ALL_LINUX: "bash {project}/scripts/prepare_golang.sh"
CIBW_BEFORE_BUILD: "rm -rfv {project}/build"
# TODO build for more
CIBW_ARCHS_LINUX: "x86_64"
CIBW_ENVIRONMENT: PATH=$PATH:/usr/local/go/bin
with:
package-dir: .
output-dir: wheelhouse
config-file: "./pyproject.toml"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl