From 47268a64e77ef65ebb5c1ab794a05e13c4478939 Mon Sep 17 00:00:00 2001 From: Matan Kushner Date: Wed, 16 Oct 2019 11:45:51 +0900 Subject: [PATCH] ci: Fix stripping artifact on Windows --- .github/workflows/workflow.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 630de1dc..4a3676d9 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -231,12 +231,14 @@ jobs: - name: Prepare build artifacts run: | - strip target/${{ matrix.target }}/release/starship - cd target/${{ matrix.target }}/release if [[ "${{ matrix.os }}" == "windows-latest" ]] then + strip target/${{ matrix.target }}/release/starship.exe + cd target/${{ matrix.target }}/release 7z a ../../../${{ matrix.name }} starship.exe else + strip target/${{ matrix.target }}/release/starship + cd target/${{ matrix.target }}/release tar czvf ../../../${{ matrix.name }} starship fi cd -