mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
build: use cargo for stripping release binaries (#4246)
This commit is contained in:
@@ -127,7 +127,6 @@ jobs:
|
|||||||
if: matrix.os == 'windows-latest'
|
if: matrix.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
strip starship.exe
|
|
||||||
7z a ../../../${{ matrix.name }} starship.exe
|
7z a ../../../${{ matrix.name }} starship.exe
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
@@ -135,8 +134,6 @@ jobs:
|
|||||||
if: matrix.os != 'windows-latest'
|
if: matrix.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
cd target/${{ matrix.target }}/release
|
cd target/${{ matrix.target }}/release
|
||||||
# TODO: investigate better cross platform stripping
|
|
||||||
strip starship || true
|
|
||||||
tar czvf ../../../${{ matrix.name }} starship
|
tar czvf ../../../${{ matrix.name }} starship
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ tempfile = "3.2.0"
|
|||||||
[profile.release]
|
[profile.release]
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
lto = true
|
lto = true
|
||||||
|
strip = true
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "starship"
|
name = "starship"
|
||||||
|
|||||||
Reference in New Issue
Block a user