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,6 +14,7 @@ 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..."
|
||||||
|
RUSTFLAGS='--deny warnings --codegen target-feature=+crt-static' \
|
||||||
cargo build --bin $bin --target $target --release
|
cargo build --bin $bin --target $target --release
|
||||||
executable=target/$target/release/$bin
|
executable=target/$target/release/$bin
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user