Skip to content

Commit

Permalink
strip when building
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Apr 27, 2022
1 parent bfb42ba commit d2ad26b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ opt-level = 'z'
lto = true
panic = "abort"
codegen-units = 1
strip = "symbols"

0 comments on commit d2ad26b

Please sign in to comment.