Skip to content

Commit

Permalink
ci: Fix stripping artifact on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai committed Oct 16, 2019
1 parent f2031e7 commit 47268a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand Down

0 comments on commit 47268a6

Please sign in to comment.