azure-steps.yml 709 B

1234567891011121314151617181920212223242526
  1. steps:
  2. - checkout: self
  3. submodules: true
  4. - template: azure-install-rust.yml
  5. - script: rustup component add rust-src
  6. displayName: Install Rust sources
  7. condition: eq( variables['XARGO'], '1' )
  8. - bash: rustup target add $TARGET
  9. displayName: Install Rust target
  10. condition: ne( variables['XARGO'], '1' )
  11. - bash: ./ci/run.sh $TARGET
  12. condition: ne( variables['Agent.OS'], 'Linux' )
  13. displayName: Run test script
  14. - bash: |
  15. if [ "$ONLY_BUILD" = "1" ]; then
  16. cargo build --target $TARGET
  17. else
  18. cargo generate-lockfile && ./ci/run-docker.sh $TARGET
  19. fi
  20. condition: eq( variables['Agent.OS'], 'Linux' )
  21. displayName: Run docker test script