Skip to content

Commit 972b0de

Browse files
authored
Add options & unit tests for cibuildwheel (#162)
1 parent 2552da6 commit 972b0de

File tree

3 files changed

+7
-54
lines changed

3 files changed

+7
-54
lines changed

.github/workflows/python_compile_wheel.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/wheels.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020

2121
- name: Build wheels
2222
uses: pypa/[email protected]
23+
env:
24+
CIBW_BUILD: cp*
25+
CIBW_SKIP: "*-win32 *_i686 *musllinux*"
26+
CIBW_TEST_REQUIRES: pytest
27+
CIBW_TEST_COMMAND: pytest {package}/tests/test_chatglm_cpp.py
2328

2429
- uses: actions/upload-artifact@v3
2530
with:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ pip install git+https://github.com/li-plus/chatglm.cpp.git@main
249249
pip install .
250250
```
251251
252+
Pre-built wheels for CPU backend on Linux / MacOS / Windows are published on [release](https://github.com/li-plus/chatglm.cpp/releases). For CUDA / Metal backends, please compile from source code or source distribution.
253+
252254
**Using pre-converted ggml models**
253255
254256
Here is a simple demo that uses `chatglm_cpp.Pipeline` to load the GGML model and chat with it. First enter the examples folder (`cd examples`) and launch a Python interactive shell:

0 commit comments

Comments
 (0)