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}} runs-on: ${{matrix.os}}
env: env:
RUSTFLAGS: "-D warnings" RUSTFLAGS: --deny warnings
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

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