Skip to content

Commit 6056bc5

Browse files
authored
Fix wheel variant promotion for MacOS (#7700)
MacOS wheels don't have +cpu suffix in them
1 parent 5a3aed9 commit 6056bc5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release-wheel-variants.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,15 @@ jobs:
147147
id: version-suffix
148148
run: |
149149
ARCH="${{ matrix.arch }}"
150+
PLATFORM="${{ matrix.platform }}"
150151
case "${ARCH}" in
151152
cpu)
152-
echo "suffix=%2Bcpu" >> "$GITHUB_OUTPUT"
153+
# macOS wheels don't have +cpu suffix
154+
if [[ "${PLATFORM}" == macosx* ]]; then
155+
echo "suffix=" >> "$GITHUB_OUTPUT"
156+
else
157+
echo "suffix=%2Bcpu" >> "$GITHUB_OUTPUT"
158+
fi
153159
;;
154160
cu*)
155161
echo "suffix=%2B${ARCH}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)