From 2904cc348dbeff46abbfe96f34aa8711e2151b26 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Thu, 12 Oct 2023 00:48:38 -0400 Subject: [PATCH] avoid error when compressing binaries --- .github/workflows/build_all.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 4ea5c3b8..70107ff9 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -197,11 +197,11 @@ jobs: elif [[ "$RUNNER_OS" == "Windows" ]]; then rm -rf octave cuda_installer* bin/mcx.lib bin/mcx.exp strip -S bin/* - upx/upx-4.0.2-win64/upx -9 bin/* + upx/upx-4.0.2-win64/upx -9 bin/* || true rm -rf upx else - strip bin/* - upx -9 bin/* + strip bin/mcx* || true + upx -9 bin/mcx* || true fi rm -rf .git .github mcxlab vsproj nsight mcxstudio src Makefile package icons genlog.sh .git* .travis* deploy icons filter mcxcloud pmcx pymcx winget inno Xcode* - name: Zip mcx