Fix for latest macos builds (#1227)

This commit is contained in:
Raivis Dejus 2025-08-30 13:48:03 +03:00 committed by GitHub
commit 08174301a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,6 +80,13 @@ jobs:
poetry add torch==2.2.2 torchaudio==2.2.2
if: "matrix.os == 'macos-13'"
# Should be removed with next update to whisper.cpp
- name: Downgrade Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0.0'
if: matrix.os == 'macos-latest'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
if: runner.os == 'Windows'
@ -179,6 +186,13 @@ jobs:
poetry add torch==2.2.2 torchaudio==2.2.2 ctranslate2==4.3.1
if: "matrix.os == 'macos-13'"
# Should be removed with next update to whisper.cpp
- name: Downgrade Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0.0'
if: matrix.os == 'macos-latest'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
if: runner.os == 'Windows'
@ -279,9 +293,18 @@ jobs:
with:
submodules: recursive
# Should be removed with next update to whisper.cpp
- name: Downgrade Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0.0'
if: matrix.os == 'macos-latest'
- name: Build wheels
uses: pypa/cibuildwheel@v2.22.0
env:
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.9,<3.13"
CIBW_SKIP: "cp313-* cp314-*"
CIBW_ARCHS_WINDOWS: "auto64"
CIBW_ARCHS_MACOS: "auto64"
CIBW_ARCHS_LINUX: "auto64"