Pass rustflags consistently
type: fixed
This commit is contained in:
parent
b82ccf1882
commit
6c4805890b
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -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
|
||||||
|
|
17
bin/package
17
bin/package
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user