Skip to content

Commit 5042dd0

Browse files
fix(ci): skip MLX metallib on Intel macOS builds
Use an Intel-specific Tauri config override so stable x86_64 release jobs do not bundle the Apple-Silicon-only MLX resource.
1 parent fdffb0a commit 5042dd0

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.github/workflows/desktop_cd.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,14 @@ jobs:
109109
apple-certificate-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
110110
keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}
111111
- run: |
112-
FEATURES_FLAG=""
112+
BUILD_ARGS=(--target "${{ matrix.target }}" --config "${{ env.TAURI_CONF_PATH }}" --verbose)
113+
if [[ "${{ matrix.target }}" == "x86_64-apple-darwin" ]]; then
114+
BUILD_ARGS+=(--config ./src-tauri/tauri.conf.macos-intel.json)
115+
fi
113116
if [[ "${{ inputs.channel }}" == "staging" ]]; then
114-
FEATURES_FLAG="--features devtools"
117+
BUILD_ARGS+=(--features devtools)
115118
fi
116-
pnpm -F desktop tauri build --target ${{ matrix.target }} --config ${{ env.TAURI_CONF_PATH }} --verbose $FEATURES_FLAG
119+
pnpm -F desktop tauri build "${BUILD_ARGS[@]}"
117120
env:
118121
# https://v2.tauri.app/reference/environment-variables/
119122
CI: false
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"bundle": {
3+
"macOS": {
4+
"files": {
5+
"Resources/mlx-swift_Cmlx.bundle/default.metallib": null
6+
}
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)