Skip to content

Commit 617405f

Browse files
authored
add macos x86 intel again (#1876)
* add macos x86 intel again * update oneapi url * fix macos13 x86 * update github action * update env
1 parent 5fbed01 commit 617405f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ jobs:
139139
arch: aarch64
140140
- os: macos-13
141141
arch: arm64
142+
- os: macos-13
143+
arch: x86_64
142144

143145
steps:
144146
- uses: actions/checkout@v4
@@ -157,7 +159,7 @@ jobs:
157159
env:
158160
CIBW_ENVIRONMENT_PASS_LINUX: CIBW_ARCHS
159161
CIBW_ENVIRONMENT_WINDOWS: CTRANSLATE2_ROOT='${{ github.workspace }}\install'
160-
CIBW_ENVIRONMENT_MACOS: CTRANSLATE2_ROOT='/usr/local'
162+
CIBW_ENVIRONMENT_MACOS: "CTRANSLATE2_ROOT='/usr/local' MACOSX_DEPLOYMENT_TARGET=10.13"
161163
CIBW_BEFORE_ALL_LINUX: python/tools/prepare_build_environment_linux.sh
162164
CIBW_BEFORE_ALL_MACOS: python/tools/prepare_build_environment_macos.sh
163165
CIBW_BEFORE_ALL_WINDOWS: bash python/tools/prepare_build_environment_windows.sh

python/tools/prepare_build_environment_macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ else
1717

1818
# Install OneAPI MKL
1919
# See https://github.com/oneapi-src/oneapi-ci for installer URLs
20-
ONEAPI_INSTALLER_URL=https://registrationcenter-download.intel.com/akdlm/irc_nas/19080/m_BaseKit_p_2023.0.0.25441_offline.dmg
20+
ONEAPI_INSTALLER_URL=https://registrationcenter-download.intel.com/akdlm/IRC_NAS/cd013e6c-49c4-488b-8b86-25df6693a9b7/m_BaseKit_p_2023.2.0.49398.dmg
2121
wget -q $ONEAPI_INSTALLER_URL
2222
hdiutil attach -noverify -noautofsck $(basename $ONEAPI_INSTALLER_URL)
2323
sudo /Volumes/$(basename $ONEAPI_INSTALLER_URL .dmg)/bootstrapper.app/Contents/MacOS/bootstrapper --silent --eula accept --components intel.oneapi.mac.mkl.devel

0 commit comments

Comments
 (0)