From f7da0c08825cd6074141fcf3026a8b7f53e3503a Mon Sep 17 00:00:00 2001 From: lkhsss Date: Tue, 26 Aug 2025 12:40:41 +0800 Subject: [PATCH] =?UTF-8?q?:hammer:=E4=BF=AE=E6=AD=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=94=99=E8=AF=AF:hammer:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76e1202..1d1c329 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: os: windows-latest use-cross: true cargo-flags: "" - upx: true + upx: false - target: x86_64-apple-darwin os: macos-latest cargo-flags: "" @@ -111,7 +111,7 @@ jobs: cargo -V rustc -V - name: Install UPX - if: runner.os == 'Windows' || runner.os == 'Linux' + if: (runner.os == 'Windows' || runner.os == 'Linux') && matrix.upx == 'true' uses: crazy-max/ghaction-upx@v3 with: install-only: true @@ -134,10 +134,10 @@ jobs: executable=target/$target/release/$bin if [[ "$RUNNER_OS" == "Windows" ]]; then upx --ultra-brute $executable.exe - elif [["$RUNNER_OS" == "Linux"]]; then + elif [["$RUNNER_OS" == "Linux" && matrix.upx == "true" ]]; then upx --ultra-brute $executable fi - if [[ "$RUNNER_OS" == "Windows" ]]; then + if [[ "$RUNNER_OS" == "Windows" && matrix.upx == "true" ]]; then executable=$executable.exe fi mkdir $dist_dir