Skip to content

chore(deps): drop redundant direct libxml2 requirement #96

chore(deps): drop redundant direct libxml2 requirement

chore(deps): drop redundant direct libxml2 requirement #96

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ ubuntu-latest, windows-latest, macos-14 ]
steps:
- uses: actions/checkout@v7
- name: Cache Conan packages
uses: actions/cache@v4
with:
path: ~/.conan2
key: conan-${{ matrix.os }}-${{ hashFiles('conanfile.py') }}
restore-keys: |
conan-${{ matrix.os }}-
- name: Build wheels
uses: pypa/cibuildwheel@v4.1.0
env:
# Build selection and wheel-tag env live in [tool.cibuildwheel] in pyproject.toml.
# Linux wheels build inside a container — mount the host Conan cache in.
CIBW_CONTAINER_ENGINE: "docker; create_args: --volume /home/runner/.conan2:/root/.conan2"
# The Linux container writes the Conan cache as root; reclaim ownership so
# the actions/cache post-step (running as the runner user) can save it.
- name: Reclaim Conan cache ownership
if: always() && runner.os == 'Linux'
run: sudo chown -R "$(id -u):$(id -g)" ~/.conan2
- uses: actions/upload-artifact@v7
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl