Explorar o código

ci: fix strip on MacOS

Yujia Qiao %!s(int64=4) %!d(string=hai) anos
pai
achega
f5956e780f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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