mirror of https://github.com/icedland/iced.git
Update build-rust
This commit is contained in:
parent
48aa55be17
commit
050983e57f
|
@ -16,6 +16,7 @@ test_build_no_std=y
|
|||
test_features=y
|
||||
test_current=y
|
||||
test_msrv=y
|
||||
test_code_asm=y
|
||||
|
||||
# Minimum supported Rust version
|
||||
msrv="1.41.0"
|
||||
|
@ -189,7 +190,7 @@ build_test_current_version() {
|
|||
cargo build --color always --release --features "serde code_asm"
|
||||
|
||||
echo "==== TEST RELEASE ===="
|
||||
cargo test --color always --release --features "serde code_asm"
|
||||
cargo test --color always --release --features "serde $test_code_asm_feat"
|
||||
|
||||
# Make sure the two read-mem methods behave the same
|
||||
# Also test serde code. It needs encoder to also test 'db x,y,z', see serde tests
|
||||
|
@ -197,7 +198,7 @@ build_test_current_version() {
|
|||
cargo test --color always --tests --no-default-features --features "std decoder encoder serde __internal_flip"
|
||||
|
||||
echo "==== TEST DEBUG ===="
|
||||
cargo test --color always --tests --features "serde code_asm"
|
||||
cargo test --color always --tests --features "serde $test_code_asm_feat"
|
||||
|
||||
echo "==== BUILD RELEASE wasm32-unknown-unknown ===="
|
||||
cargo check --color always --target wasm32-unknown-unknown --release --features "serde code_asm"
|
||||
|
@ -220,11 +221,12 @@ build_test_msrv() {
|
|||
|
||||
echo "*** If this fails, install Rust $msrv"
|
||||
|
||||
echo "==== BUILD RELEASE ===="
|
||||
cargo +$msrv build --color always --release --features "serde code_asm"
|
||||
echo "==== BUILD DEBUG ===="
|
||||
cargo +$msrv build --color always --features "serde code_asm"
|
||||
|
||||
echo "==== TEST RELEASE ===="
|
||||
cargo +$msrv test --color always --release --features "serde code_asm"
|
||||
# We don't test it since we only guarantee that the crate can be built. Testing is for iced devs.
|
||||
# We test it when using the latest rustc, but not rustc MSRV.
|
||||
# This also speeds up CI since code_asm feature's tests take a very long time to compile.
|
||||
|
||||
cd "$curr_dir"
|
||||
}
|
||||
|
@ -244,6 +246,7 @@ while [ "$#" -gt 0 ]; do
|
|||
--quick-check)
|
||||
clear_test_vars
|
||||
test_current=y
|
||||
test_code_asm=n
|
||||
;;
|
||||
--no-dotnet)
|
||||
test_gen=n
|
||||
|
@ -283,6 +286,12 @@ fi
|
|||
echo "rustup show"
|
||||
rustup show
|
||||
|
||||
if [ "$test_code_asm" = "y" ]; then
|
||||
test_code_asm_feat="code_asm"
|
||||
else
|
||||
test_code_asm_feat=""
|
||||
fi
|
||||
|
||||
if [ "$test_gen" = "y" ] || [ "$test_instrs" = "y" ]; then
|
||||
echo "dotnet version (if this fails, install .NET or use --no-dotnet)"
|
||||
dotnet --version
|
||||
|
|
Loading…
Reference in New Issue