compiler-builtins-zynq/ci/azure-steps.yml

29 lines
884 B
YAML
Raw Normal View History

steps:
2019-04-02 22:58:12 +08:00
- checkout: self
submodules: true
2019-04-02 23:27:38 +08:00
- template: azure-install-rust.yml
2019-04-02 23:27:38 +08:00
- bash: rustup target add $TARGET
2019-04-03 02:44:28 +08:00
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"
2019-04-02 23:27:38 +08:00
- bash: ./ci/run.sh $TARGET
condition: ne( variables['Agent.OS'], 'Linux' )
displayName: Run test script
2019-04-03 02:44:28 +08:00
- 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