use circleci. delete gh ci actions. #33
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: Build and Publish Wheels | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.9' | |
- name: Install cibuildwheel | |
run: python -m pip install cibuildwheel | |
- name: Build wheels | |
run: cibuildwheel --output-dir wheel_output | |
env: | |
CIBW_ARCHS: "x86_64 aarch64" | |
CIBW_MANYLINUX_X86_64_IMAGE: "unaidedelf/cibw_rust:x86_64" | |
CIBW_MANYLINUX_AARCH64_IMAGE: "unaidedelf/cibw_rust:aarch64" | |
- name: Upload wheels as artifacts (optional) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: wheels-x86_64 | |
path: wheel_output/*.whl | |
- name: Publish to PyPI | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |