mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Run strip
as a separate step in job build
except on windows. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3411812ee5
commit
8bdd089775
1 changed files with 4 additions and 0 deletions
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
|
@ -100,6 +100,10 @@ jobs:
|
||||||
- name: Copy and rename utility
|
- name: Copy and rename utility
|
||||||
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
|
run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }}
|
||||||
|
|
||||||
|
- name: Strip the executable
|
||||||
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
|
run: strip ${{ matrix.output }}
|
||||||
|
|
||||||
- name: Create archive (tgz, linux)
|
- name: Create archive (tgz, linux)
|
||||||
if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }}
|
if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }}
|
||||||
run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}
|
run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue