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