From 325ce4452b9b102b5a1b8dfd64018fe69a6639eb Mon Sep 17 00:00:00 2001 From: arabian Date: Sun, 5 Apr 2026 00:31:40 +0300 Subject: [PATCH] use upx in github actions --- .github/workflows/dev-release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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: |