Skip to content

cibuildwheels build process #50

cibuildwheels build process

cibuildwheels build process #50

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:
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry cibuildwheel
- name: Build wheels
env:
CIBW_BUILD: cp310-* cp311-* cp312-* pp310-*
CIBW_ARCHS_LINUX: x86_64 aarch64
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_ARCHS_WINDOWS: AMD64
CIBW_SKIP: "*-win32 *-manylinux_i686"
CIBW_BEFORE_BUILD: "pip install cffi"
run: |
poetry install --with dev
poetry run build-libllama-cli-shared
poetry run build-libllama-cli-static
poetry run build-llama-cli-cffi-static
poetry build
cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl