ci: Fix stripping artifact on Windows

This commit is contained in:
Matan Kushner 2019-10-16 11:45:51 +09:00
parent f2031e7d00
commit 47268a64e7
No known key found for this signature in database
GPG key ID: 4B98C3A8949CA8A4

View file

@ -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 -