🔨修正自动构建错误🔨
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -32,7 +32,7 @@ jobs:
|
|||||||
os: windows-latest
|
os: windows-latest
|
||||||
use-cross: true
|
use-cross: true
|
||||||
cargo-flags: ""
|
cargo-flags: ""
|
||||||
upx: true
|
upx: false
|
||||||
- target: x86_64-apple-darwin
|
- target: x86_64-apple-darwin
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
cargo-flags: ""
|
cargo-flags: ""
|
||||||
@ -111,7 +111,7 @@ jobs:
|
|||||||
cargo -V
|
cargo -V
|
||||||
rustc -V
|
rustc -V
|
||||||
- name: Install UPX
|
- name: Install UPX
|
||||||
if: runner.os == 'Windows' || runner.os == 'Linux'
|
if: (runner.os == 'Windows' || runner.os == 'Linux') && matrix.upx == 'true'
|
||||||
uses: crazy-max/ghaction-upx@v3
|
uses: crazy-max/ghaction-upx@v3
|
||||||
with:
|
with:
|
||||||
install-only: true
|
install-only: true
|
||||||
@ -134,10 +134,10 @@ jobs:
|
|||||||
executable=target/$target/release/$bin
|
executable=target/$target/release/$bin
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
upx --ultra-brute $executable.exe
|
upx --ultra-brute $executable.exe
|
||||||
elif [["$RUNNER_OS" == "Linux"]]; then
|
elif [["$RUNNER_OS" == "Linux" && matrix.upx == "true" ]]; then
|
||||||
upx --ultra-brute $executable
|
upx --ultra-brute $executable
|
||||||
fi
|
fi
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" && matrix.upx == "true" ]]; then
|
||||||
executable=$executable.exe
|
executable=$executable.exe
|
||||||
fi
|
fi
|
||||||
mkdir $dist_dir
|
mkdir $dist_dir
|
||||||
|
|||||||
Reference in New Issue
Block a user