Skip to content

Commit

Permalink
ci: use llvm-strip
Browse files Browse the repository at this point in the history
  • Loading branch information
rapiz1 committed Jan 21, 2022
1 parent 3780b4c commit 06db33b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ jobs:
run: cross test --release --target ${{ matrix.target }} --verbose
- name: Build release
run: cross build --release --target ${{ matrix.target }}
- name: Strip
- name: Install LLVM Strip
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install llvm
- name: LLVM Strip
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
continue-on-error: true
run: strip target/${{ matrix.target }}/release/${{ matrix.exe }}
run: llvm-strip target/${{ matrix.target }}/release/${{ matrix.exe }}
- name: Run UPX
# Upx may not support some platforms. Ignore the errors
continue-on-error: true
Expand Down

0 comments on commit 06db33b

Please sign in to comment.