diff --git a/.github/workflows/dev-release.yml b/.github/workflows/dev-release.yml index 58f2ebc..1a313fe 100644 --- a/.github/workflows/dev-release.yml +++ b/.github/workflows/dev-release.yml @@ -66,6 +66,15 @@ jobs: - name: Build binary run: cargo build --release --target ${{ matrix.target }} + - name: Compress binary with UPX + # UPX ломает подписи кода на macOS (особенно на Apple Silicon), поэтому применяем только для Linux и Windows + if: matrix.os != 'macos-latest' + uses: crazy-max/ghaction-upx@v3 + with: + version: latest + files: target/${{ matrix.target }}/release/${{ matrix.binary_name }} + args: -9 + - name: Rename artifact shell: bash run: |