Pass rustflags consistently

type: fixed
This commit is contained in:
Casey Rodarmor 2021-10-11 17:30:00 -07:00
parent b82ccf1882
commit 6c4805890b
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0
2 changed files with 8 additions and 11 deletions

View File

@ -39,7 +39,7 @@ jobs:
runs-on: ${{matrix.os}}
env:
RUSTFLAGS: "-D warnings"
RUSTFLAGS: --deny warnings
steps:
- uses: actions/checkout@v2

View File

@ -26,16 +26,13 @@ case $os in
;;
esac
case $os in
ubuntu-latest | macos-latest)
cargo rustc --bin $bin --target $target --release
executable=target/$target/release/$bin
;;
windows-latest)
cargo rustc --bin $bin --target $target --release -- -C target-feature="+crt-static"
executable=target/$target/release/$bin.exe
;;
esac
export RUSTFLAGS='--deny warnings --codegen target-feature=+crt-static'
cargo build --bin $bin --target $target --release
executable=target/$target/release/$bin
if [[ $os == windows-2016 ]]; then
executable=$executable.exe
fi
echo "Building completions..."
cargo run --package gen -- --bin $executable completion-scripts