-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.17 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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