From 06db33b86c6820f258d3a33cf01597b73fb0b1dd Mon Sep 17 00:00:00 2001 From: Yujia Qiao Date: Fri, 21 Jan 2022 23:27:31 +0800 Subject: [PATCH] ci: use llvm-strip --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bed9c96..acdeca46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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