1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-11-28 07:46:28 +00:00

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 - name: Prepare build artifacts
run: | run: |
strip target/${{ matrix.target }}/release/starship
cd target/${{ matrix.target }}/release
if [[ "${{ matrix.os }}" == "windows-latest" ]] if [[ "${{ matrix.os }}" == "windows-latest" ]]
then then
strip target/${{ matrix.target }}/release/starship.exe
cd target/${{ matrix.target }}/release
7z a ../../../${{ matrix.name }} starship.exe 7z a ../../../${{ matrix.name }} starship.exe
else else
strip target/${{ matrix.target }}/release/starship
cd target/${{ matrix.target }}/release
tar czvf ../../../${{ matrix.name }} starship tar czvf ../../../${{ matrix.name }} starship
fi fi
cd - cd -