use upx in github actions

This commit is contained in:
2026-04-05 00:31:40 +03:00
parent e878fb7b6c
commit 325ce4452b
+9
View File
@@ -66,6 +66,15 @@ jobs:
- name: Build binary - name: Build binary
run: cargo build --release --target ${{ matrix.target }} 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 - name: Rename artifact
shell: bash shell: bash
run: | run: |