steps:
- checkout: self
fetchDepth: 1
- template: azure-install-rust.yml
- bash: rustup target add $OTHER_TARGET
displayName: "Install cross-compile target"
- bash: sudo apt update -y && sudo apt install gcc-multilib -y
displayName: "Install gcc-multilib (linux)"
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
- bash: rustup component add clippy || echo "clippy not available"
displayName: "Install clippy (maybe)"
- bash: rustup component add rustfmt || echo "rustfmt not available"
displayName: "Install rustfmt (maybe)"
- bash: cargo test --features 'deny-warnings curl/force-system-lib-on-osx'
displayName: "cargo test"
- bash: cargo test -p cargo-test-support
displayName: "cargo test -p cargo-test-support"
- bash: cargo test -p cargo-platform
displayName: "cargo test -p cargo-platform"