ci: use native strip

This commit is contained in:
Yujia Qiao 2022-01-04 17:07:32 +08:00 committed by Yujia Qiao
parent 45a6d538c2
commit 2e0cc225f8
1 changed files with 3 additions and 3 deletions

View File

@ -59,10 +59,10 @@ jobs:
run: cross test --release --target ${{ matrix.target }} --verbose
- name: Build release
run: cross build --release --target ${{ matrix.target }}
- name: Install cargo-strip
run: cargo install cargo-strip
- name: Strip
run: cargo strip --target ${{ matrix.target }}
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
continue-on-error: true
run: strip target/${{ matrix.target }}/release/${{ matrix.exe }}
- name: Run UPX
# Upx may not support some platforms. Ignore the errors
continue-on-error: true