From d2ad26b8f6673a43d7d13c69ba81525f2129f963 Mon Sep 17 00:00:00 2001 From: peratx Date: Wed, 27 Apr 2022 12:30:54 +0800 Subject: [PATCH] strip when building --- .github/workflows/auto-release.yml | 14 ++------------ Cargo.toml | 1 + 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index bfcda2f..0dad601 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -37,19 +37,16 @@ jobs: include: - os: ubuntu-latest file: ./target/release/mcl-installer - strip: true args: --features rustls release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-linux-amd64 - os: macos-latest - file: ./target/release/mcl-installer - strip: true + file: ./target/release/mcl-installer] args: --features native-tls release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-macos-amd64 - os: windows-latest file: ./target/release/mcl-installer.exe - strip: false args: --features native-tls release_name: mcl-installer-${{ needs.create_release.outputs.commit_id }}-windows-amd64.exe steps: @@ -73,7 +70,7 @@ jobs: uses: svenstaro/upx-action@v2 with: file: ${{ matrix.file }} - strip: ${{ matrix.strip }} + strip: false args: --best --lzma - name: Upload release assets @@ -184,13 +181,6 @@ jobs: command: build args: ${{ matrix.args }} --release --target ${{ matrix.target }} - - name: Compress binaries - uses: svenstaro/upx-action@v2 - with: - file: ./target/${{ matrix.target }}/release/mcl-installer - strip: true - args: --help - - name: Upload release assets uses: actions/upload-release-asset@v1 env: diff --git a/Cargo.toml b/Cargo.toml index f3ccbde..868bfff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,3 +30,4 @@ opt-level = 'z' lto = true panic = "abort" codegen-units = 1 +strip = "symbols"