@@ -21,12 +21,11 @@ jobs:
2121 TARGET : macos
2222 # currently, wrapt pulls the arm64 version instead of the universal one, so the below is a hack
2323 CMD_REQS : >
24- mkdir -p pip-packages && cd pip-packages && pip wheel --no-cache-dir --no-binary tree_sitter, ijson,charset_normalizer,PyYAML .. &&
24+ mkdir -p pip-packages && cd pip-packages && pip wheel --no-cache-dir --no-binary ijson,charset_normalizer,PyYAML .. &&
2525 rm $(ls | grep wrapt) && pip download wrapt --platform=universal2 --only-binary=:all: && pip install $(ls | grep wrapt) --force-reinstall && cd .. &&
2626 pip install --no-deps --no-index --find-links=pip-packages pip-packages/*
2727 CMD_BUILD : >
28- 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|^./||'") &&
29- pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages --target-arch universal2 -F codecov_cli/main.py &&
28+ pyinstaller --copy-metadata codecov-cli --target-arch universal2 -F codecov_cli/main.py &&
3029 mv dist/main dist/codecovcli_macos &&
3130 lipo -archs dist/codecovcli_macos | grep 'x86_64 arm64'
3231 OUT_FILE_NAME : codecovcli_macos
3736 CMD_REQS : >
3837 pip install -r requirements.txt && pip install .
3938 CMD_BUILD : >
40- 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|^./||'") &&
41- pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py &&
39+ pyinstaller --copy-metadata codecov-cli -F codecov_cli/main.py &&
4240 cp ./dist/main ./dist/codecovcli_linux
4341 OUT_FILE_NAME : codecovcli_linux
4442 ASSET_MIME : application/octet-stream
@@ -48,15 +46,13 @@ jobs:
4846 CMD_REQS : >
4947 pip install -r requirements.txt && pip install .
5048 CMD_BUILD : >
51- pyinstaller --add-binary "build\lib.win-amd64-cpython-311\staticcodecov_languages.cp311-win_amd64.pyd;." -- copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli\main.py &&
49+ pyinstaller --copy-metadata codecov-cli -F codecov_cli\main.py &&
5250 Copy-Item -Path ".\dist\main.exe" -Destination ".\dist\codecovcli_windows.exe"
5351 OUT_FILE_NAME : codecovcli_windows.exe
5452 ASSET_MIME : application/vnd.microsoft.portable-executable
5553
5654 steps :
5755 - uses : actions/checkout@v4
58- with :
59- submodules : true
6056
6157 - name : Set up Python 3.11
6258 uses : actions/setup-python@v3
@@ -119,8 +115,6 @@ jobs:
119115
120116 steps :
121117 - uses : actions/checkout@v4
122- with :
123- submodules : true
124118
125119 - name : Set up QEMU
126120 uses : docker/setup-qemu-action@v1
0 commit comments