Skip to content

Commit

Permalink
Update build_assets.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-sentry authored Oct 17, 2023
1 parent 3eb7dbb commit c0f7b3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
CFLAGS: -arch arm64 -arch x86_64
TARGET: macos
CMD_REQS: >
mkdir -p pip-packages && cd pip-packages && pip wheel --no-cache-dir -r ../requirements.txt && cd ..
mkdir -p pip-packages && cd pip-packages && pip wheel --no-cache-dir -r ../requirements.txt && pip wheel --no-cache-dir . && 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 --hidden-import click --target-arch universal2 -F codecov_cli/main.py &&
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'
OUT_FILE_NAME: codecovcli_macos
Expand Down Expand Up @@ -61,7 +61,6 @@ jobs:
run: |
${{matrix.CMD_REQS}}
python setup.py build
python install --no-deps .
- name: Install pyinstaller
run: pip install pyinstaller
- name: Build with pyinstaller for ${{matrix.TARGET}}
Expand Down

0 comments on commit c0f7b3b

Please sign in to comment.