steps: - checkout: self submodules: true - template: azure-install-rust.yml - bash: rustup target add $TARGET displayName: Install Rust target - bash: | set -e curl -L https://github.com/rust-lang/llvm-project/archive/rustc/8.0-2019-03-18.tar.gz | \ tar xzf - --strip-components 1 llvm-project-rustc-8.0-2019-03-18/compiler-rt echo '##vso[task.setvariable variable=RUST_COMPILER_RT_ROOT]./compiler-rt' displayName: "Download compiler-rt reference sources" - bash: ./ci/run.sh $TARGET condition: ne( variables['Agent.OS'], 'Linux' ) displayName: Run test script - bash: | if [ "$ONLY_BUILD" = "1" ]; then cargo build --target $TARGET else cargo generate-lockfile && ./ci/run-docker.sh $TARGET fi condition: eq( variables['Agent.OS'], 'Linux' ) displayName: Run docker test script