Skip to content

Commit

Permalink
Strip mingw binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 committed Jul 17, 2024
1 parent b17328c commit 3e5b741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ygopro-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ jobs:
run: ./scripts/build-premake5.sh
- name: Predeploy
shell: bash
env:
STRIP: 1
run: ./scripts/predeploy.sh
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
Expand Down
3 changes: 3 additions & 0 deletions scripts/predeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ mkdir -p $DEPLOY_DIR
if [[ "$TARGET_OS" == "windows" ]]; then
shopt -s globstar
mv bin/**/ocgcore.dll $DEPLOY_DIR
if [[ "${STRIP:-0}" == "1" ]]; then
strip $DEPLOY_DIR/ocgcore.dll
fi
elif [[ "$TARGET_OS" == "android" ]]; then
ARCH=("armeabi-v7a" "arm64-v8a" "x86" "x86_64" )
OUTPUT=("libocgcorev7.so" "libocgcorev8.so" "libocgcorex86.so" "libocgcorex64.so")
Expand Down

0 comments on commit 3e5b741

Please sign in to comment.