Skip to content

Commit ddff95f

Browse files
committed
build(whl): drop cibuildwheel, GCC 10 issue
1 parent 38f9cf0 commit ddff95f

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

.github/workflows/ampere-build-and-release.yaml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@ permissions:
1212

1313
jobs:
1414
build_wheels_arm64:
15-
name: Build arm64 wheels
15+
name: Build arm64 wheel (Python ${{ matrix.python-version }})
1616
runs-on: [self-hosted]
1717
container:
18-
image: ubuntu:22.04
19-
options: --privileged -v /var/run/docker.sock:/var/run/docker.sock
18+
image: ubuntu:24.04
19+
strategy:
20+
matrix:
21+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2022

2123
steps:
22-
- name: Install prerequisites
24+
- name: Install system dependencies
2325
run: |
2426
apt-get update
25-
apt-get install -y git python3 python3-pip docker.io
27+
apt-get install -y git cmake ninja-build gcc g++ curl
2628
2729
- uses: actions/checkout@v4
2830
with:
@@ -31,36 +33,30 @@ jobs:
3133

3234
- uses: actions/setup-python@v5
3335
with:
34-
python-version: "3.11"
36+
python-version: ${{ matrix.python-version }}
3537

36-
- name: Install cibuildwheel
37-
run: python -m pip install cibuildwheel==2.22.0
38+
- name: Install build dependencies
39+
run: python -m pip install build scikit-build-core
3840

39-
- name: Build wheels
40-
run: python -m cibuildwheel --output-dir wheelhouse
41-
env:
42-
CIBW_SKIP: "*musllinux* pp*"
43-
CIBW_REPAIR_WHEEL_COMMAND: ""
44-
CIBW_ARCHS: "aarch64"
45-
CIBW_ENVIRONMENT: 'CMAKE_ARGS="-DGGML_NATIVE=ON"'
46-
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-*"
41+
- name: Build wheel
42+
run: CMAKE_ARGS="-DGGML_NATIVE=ON" python -m build --wheel --outdir wheelhouse/
4743

48-
- name: Upload wheels as artifacts
49-
uses: actions/upload-artifact@v4
44+
- uses: actions/upload-artifact@v4
5045
with:
51-
name: wheels_arm64
46+
name: wheel-py${{ matrix.python-version }}
5247
path: ./wheelhouse/*.whl
5348

5449
release:
5550
name: Release
5651
needs: [build_wheels_arm64]
5752
runs-on: [self-hosted]
5853
container:
59-
image: ubuntu:22.04
54+
image: ubuntu:24.04
6055

6156
steps:
6257
- uses: actions/download-artifact@v4
6358
with:
59+
pattern: wheel-py*
6460
merge-multiple: true
6561
path: dist
6662

0 commit comments

Comments
 (0)