Skip to content

Commit

Permalink
fix: use macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Jan 14, 2025
1 parent 9fa79b6 commit 4be4469
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build_assets.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Build Compiled Assets

on:
Expand All @@ -16,18 +17,18 @@ jobs:
fail-fast: true
matrix:
include:
- os: macos-13
- os: macos-latest
TARGET: macos
CMD_REQS: >
mkdir -p pip-packages && cd pip-packages && pip wheel --no-cache-dir --no-binary tree_sitter,ijson,charset_normalizer,PyYAML .. &&
# currently, wrapt pulls the arm64 version instead of the universal one, so the below is a hack
rm $(ls | grep wrapt) && pip download wrapt --platform=universal2 --only-binary=:all: && pip install $(ls | grep wrapt) --force-reinstall && cd .. &&
pip install --no-deps --no-index --find-links=pip-packages pip-packages/*
CMD_BUILD: >
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|^./||'") &&
pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages --target-arch universal2 -F codecov_cli/main.py &&
mv dist/main dist/codecovcli_macos &&
lipo -archs dist/codecovcli_macos | grep 'x86_64 arm64' &&
cd dist && ls -al && cd ..
lipo -archs dist/codecovcli_macos | grep 'x86_64 arm64'
OUT_FILE_NAME: codecovcli_macos
ASSET_MIME: application/octet-stream
- os: ubuntu-20.04
Expand Down

0 comments on commit 4be4469

Please sign in to comment.