ci: fix strip on MacOS

This commit is contained in:
Yujia Qiao 2022-01-22 00:42:28 +08:00
parent 3cab131fc4
commit f5956e780f
No known key found for this signature in database
GPG Key ID: DC129173B148701B
1 changed files with 5 additions and 1 deletions

View File

@ -77,9 +77,13 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install llvm
- name: LLVM Strip
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-latest'
continue-on-error: true
run: llvm-strip target/${{ matrix.target }}/release/${{ matrix.exe }}
- name: MacOS Strip
if: 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