Parcourir la source

ci: fix strip on MacOS

Yujia Qiao il y a 4 ans
Parent
commit
f5956e780f
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      .github/workflows/release.yml

+ 5 - 1
.github/workflows/release.yml

@@ -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