Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit d994ebf

Browse files
committed
Add check of correct archs for macos build
Signed-off-by: joseph-sentry <[email protected]>
1 parent c600af5 commit d994ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release_flow.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
CMD_BUILD: >
5353
STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") &&
5454
pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --hidden-import staticcodecov_languages -F codecov_cli/main.py &&
55-
mv dist/main dist/codecovcli_macos
55+
mv dist/main dist/codecovcli_macos &&
56+
lipo -archs dist/codecovcli_macos | grep -v 'x86_64 arm65' >> /dev/null && exit 1
5657
OUT_FILE_NAME: codecovcli_macos
5758
ASSET_MIME: application/octet-stream
5859
- os: ubuntu-latest

0 commit comments

Comments
 (0)