From 8bdd089775409bc1f0bde482e7e7cd87bcf5b650 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Tue, 31 May 2022 17:23:17 +1000 Subject: [PATCH] Run `strip` as a separate step in job `build` except on windows. Signed-off-by: Jiahao XU --- .github/workflows/rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9ff74d56..1070e785 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -100,6 +100,10 @@ jobs: - name: Copy and rename utility 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) if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }} run: tar -czvf cargo-binstall-${{ matrix.target }}.tgz ${{ matrix.output }}