build: use cargo for stripping release binaries (#4246)

This commit is contained in:
David Knaack 2022-08-14 21:31:08 +02:00 committed by GitHub
parent 43eefbe8eb
commit 37f350a476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -127,7 +127,6 @@ jobs:
if: matrix.os == 'windows-latest'
run: |
cd target/${{ matrix.target }}/release
strip starship.exe
7z a ../../../${{ matrix.name }} starship.exe
cd -
@ -135,8 +134,6 @@ jobs:
if: matrix.os != 'windows-latest'
run: |
cd target/${{ matrix.target }}/release
# TODO: investigate better cross platform stripping
strip starship || true
tar czvf ../../../${{ matrix.name }} starship
cd -

View File

@ -121,6 +121,7 @@ tempfile = "3.2.0"
[profile.release]
codegen-units = 1
lto = true
strip = true
[[bin]]
name = "starship"