Skip to content

cibuildwheel integration #22

cibuildwheel integration

cibuildwheel integration #22

Workflow file for this run

name: Build
on: [push, 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
with:
submodules: "recursive"
# Used to host cibuildwheel
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[all]
pip install poetry
poetry run build-llama-cpp
- name: Build wheels
uses: pypa/cibuildwheel@v2.19.1
env:
# disable repair
CIBW_REPAIR_WHEEL_COMMAND: ""
CIBW_BUILD: "cp310-* cp311-* cp312-*"
CIBW_SKIP_PYTHON_COMPATIBILITY_CHECK: 1
CIBW_BEFORE_BUILD: "poetry build"
CIBW_BUILD_VERBOSITY: 1
with:
package-dir: .
output-dir: wheelhouse
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl