Skip to content

docs: simplify and correct the build instructions #3

docs: simplify and correct the build instructions

docs: simplify and correct the build instructions #3

Workflow file for this run

name: Build and publish to PyPI
on:
push:
tags: ['v*']
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build wheel (Linux x86_64)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update -q
sudo apt-get install -y --no-install-recommends \
cmake \
patchelf \
qtbase5-dev \
libqt5opengl5-dev \
libtbb-dev \
libeigen3-dev \
libgl1-mesa-dev
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build sdist and wheel
run: uv build
- name: Upload dist artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- name: Download dist artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/