Skip to content

Commit 0053819

Browse files
committed
ci: stabilize build release workflow
1 parent a6b1807 commit 0053819

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ jobs:
4646
env:
4747
# disable repair
4848
CIBW_REPAIR_WHEEL_COMMAND: ""
49+
# Release wheels should target portable baselines, not the CI host CPU.
50+
CIBW_ENVIRONMENT_MACOS: CMAKE_ARGS="-DGGML_NATIVE=off"
4951
with:
5052
package-dir: .
5153
output-dir: wheelhouse
@@ -101,9 +103,12 @@ jobs:
101103
- name: Build wheels
102104
uses: pypa/cibuildwheel@v3.1.2
103105
env:
104-
CIBW_SKIP: "*musllinux* pp*"
106+
CIBW_SKIP: "*musllinux*"
105107
CIBW_REPAIR_WHEEL_COMMAND: ""
106108
CIBW_ARCHS: "riscv64"
109+
# Build riscv64 wheels against a conservative baseline instead of
110+
# enabling RVV-related extensions from the build container.
111+
CIBW_ENVIRONMENT: CMAKE_ARGS="-DGGML_NATIVE=off -DGGML_RVV=off -DGGML_RV_ZFH=off -DGGML_RV_ZVFH=off -DGGML_RV_ZICBOP=off -DGGML_RV_ZIHINTPAUSE=off"
107112
CIBW_BUILD: "cp310-* cp311-* cp312-* cp313-* cp314-*"
108113
with:
109114
output-dir: wheelhouse
@@ -159,6 +164,7 @@ jobs:
159164
release:
160165
name: Release
161166
needs: [build_wheels, build_wheels_arm64, build_wheels_riscv64, build_sdist]
167+
if: startsWith(github.ref, 'refs/tags/')
162168
runs-on: ubuntu-latest
163169

164170
steps:

0 commit comments

Comments
 (0)