Skip to content

Vibe coded prototype of cibuildwheel #1

Vibe coded prototype of cibuildwheel

Vibe coded prototype of cibuildwheel #1

Workflow file for this run

name: Build and publish wheels
on:
# Build (smoke-test) on pushes to main; build + publish on version tags.
push:
# branches: [main]
# tags: ["v*"]
# Manual trigger
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_wheels:
name: Build wheels (Linux x86_64)
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
with:
# Build the bindings sub-package, not the repo root.
package-dir: bindings/
output-dir: wheelhouse/
- name: Upload wheels as artifact
uses: actions/upload-artifact@v4
with:
name: wheels
path: wheelhouse/*.whl
publish:
name: Publish to PyPI
needs: build_wheels
runs-on: ubuntu-22.04
# Only publish on version tags.
if: startsWith(github.ref, 'refs/tags/v')
environment:
name: pypi
url: https://pypi.org/p/roboplan
permissions:
id-token: write # Required for PyPI trusted publishing (OIDC)
steps:
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: wheels
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1