Yujia Qiao 4 лет назад
Родитель
Сommit
f5956e780f
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      .github/workflows/release.yml

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

@@ -77,9 +77,13 @@ jobs:
       if: matrix.os == 'ubuntu-latest'
       if: matrix.os == 'ubuntu-latest'
       run: sudo apt-get install llvm
       run: sudo apt-get install llvm
     - name: LLVM Strip
     - name: LLVM Strip
-      if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
+      if: matrix.os == 'ubuntu-latest'
       continue-on-error: true
       continue-on-error: true
       run: llvm-strip target/${{ matrix.target }}/release/${{ matrix.exe }}
       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
     - name: Run UPX
       # Upx may not support some platforms. Ignore the errors
       # Upx may not support some platforms. Ignore the errors
       continue-on-error: true
       continue-on-error: true