Only pass +crt-static to cargo build (#997)

This commit is contained in:
Casey Rodarmor 2021-10-13 19:54:58 -07:00 committed by GitHub
parent 9ed2c5faa1
commit a306a47898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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