11name : Build Release for Ampere
22
3- # TODO: add lib to build
43on :
54 workflow_dispatch :
65 push :
@@ -15,69 +14,44 @@ jobs:
1514 name : Build arm64 wheels
1615 runs-on : [self-hosted]
1716 container :
18- image : ubuntu:25.0
17+ image : ubuntu:22.10
18+ options : --privileged -v /var/run/docker.sock:/var/run/docker.sock
19+
1920 steps :
2021 - uses : actions/checkout@v4
2122 with :
2223 token : ${{ secrets.ACCESS_TOKEN }}
2324 submodules : recursive
2425
26+ - name : Install prerequisites
27+ run : |
28+ apt-get update
29+ apt-get install -y python3 python3-pip docker.io
30+
31+ - name : Install cibuildwheel
32+ run : python3 -m pip install cibuildwheel==2.22.0
33+
2534 - name : Build wheels
26- uses : pypa/ cibuildwheel@v2.22.0
35+ run : python3 -m cibuildwheel --output-dir wheelhouse
2736 env :
2837 CIBW_SKIP : " *musllinux* pp*"
2938 CIBW_REPAIR_WHEEL_COMMAND : " "
3039 CIBW_ARCHS : " aarch64"
31- CIBW_ENVIRONMENT : CMAKE_ARGS="-DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_APPLE_SILICON_PROCESSOR=arm64 -DCMAKE_CROSSCOMPILING=ON"
32- CIBW_BUILD : " cp38-* cp39-* cp310-* cp311-* cp312-*"
33- with :
34- output-dir : wheelhouse
40+ CIBW_ENVIRONMENT : ' CMAKE_ARGS="-DGGML_NATIVE=ON"'
41+ CIBW_BUILD : " cp310-* cp311-* cp312-* cp313-*"
3542
3643 - name : Upload wheels as artifacts
3744 uses : actions/upload-artifact@v4
3845 with :
3946 name : wheels_arm64
4047 path : ./wheelhouse/*.whl
4148
42- build_sdist :
43- name : Build source distribution
44- runs-on : [self-hosted]
45- container :
46- image : ubuntu:25.0
47-
48- steps :
49- - uses : actions/checkout@v4
50- with :
51- token : ${{ secrets.ACCESS_TOKEN }}
52- submodules : recursive
53-
54- - uses : actions/setup-python@v5
55- with :
56- python-version : " 3.9"
57-
58- - name : Install dependencies (Linux/MacOS)
59- run : |
60- python -m pip install --upgrade pip
61- python -m pip install uv
62- RUST_LOG=trace python -m uv pip install -e .[all] --verbose
63- python -m uv pip install build
64- shell : bash
65-
66- - name : Build source distribution
67- run : |
68- python -m build --sdist
69-
70- - uses : actions/upload-artifact@v4
71- with :
72- name : sdist
73- path : ./dist/*.tar.gz
74-
7549 release :
7650 name : Release
77- needs : [build_wheels_arm64, build_sdist ]
51+ needs : [build_wheels_arm64]
7852 runs-on : [self-hosted]
7953 container :
80- image : ubuntu:25.04
54+ image : ubuntu:22.10
8155
8256 steps :
8357 - uses : actions/download-artifact@v4
0 commit comments