mirror of
https://github.com/arabianq/lyrics_fetcher.git
synced 2026-04-27 22:11:22 +00:00
use upx in github actions
This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user