Only pass +crt-static to cargo build (#997)
This commit is contained in:
parent
9ed2c5faa1
commit
a306a47898
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -42,7 +42,7 @@ jobs:
|
|||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: --deny warnings --codegen target-feature=+crt-static
|
RUSTFLAGS: --deny warnings
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -14,7 +14,8 @@ echo "Packaging $bin $version for $target..."
|
|||||||
test -f Cargo.lock || cargo generate-lockfile
|
test -f Cargo.lock || cargo generate-lockfile
|
||||||
|
|
||||||
echo "Building $bin..."
|
echo "Building $bin..."
|
||||||
cargo build --bin $bin --target $target --release
|
RUSTFLAGS='--deny warnings --codegen target-feature=+crt-static' \
|
||||||
|
cargo build --bin $bin --target $target --release
|
||||||
executable=target/$target/release/$bin
|
executable=target/$target/release/$bin
|
||||||
|
|
||||||
if [[ $os == windows-2016 ]]; then
|
if [[ $os == windows-2016 ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user