# Documentation: https://aka.ms/yaml trigger: batch: true branches: include: # This is where pull requests from "bors r+" are built. - staging # This is where pull requests from "bors try" are built. - trying # Build pull requests. - master # Build post braches - post-* strategy: matrix: linux: image_name: 'ubuntu-16.04' rustup_toolchain: nightly pool: vmImage: $(image_name) steps: - bash: | echo "Hello world from $AGENT_NAME running on $AGENT_OS" echo "Reason: $BUILD_REASON" echo "Requested for: $BUILD_REQUESTEDFOR" displayName: 'Build Info' continueOnError: true - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin" displayName: 'Install Rust' - script: | rustc -Vv cargo -V displayName: 'Print Rust Version' continueOnError: true - script: cargo rustc -- -Clink-arg=-nostartfiles displayName: 'Build'