From 4be4469467f9c7501b810d7d1e25db3c775112f8 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Tue, 14 Jan 2025 09:31:12 -0300 Subject: [PATCH] fix: use macos-latest --- .github/workflows/build_assets.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_assets.yml b/.github/workflows/build_assets.yml index 17cf3be0..c4d727cd 100644 --- a/.github/workflows/build_assets.yml +++ b/.github/workflows/build_assets.yml @@ -1,3 +1,4 @@ +--- name: Build Compiled Assets on: @@ -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