rust/.azure-pipelines/steps/macos.yml

48 lines
1.6 KiB
YAML
Raw Normal View History

2019-05-06 13:15:52 -05:00
steps:
- template: show-disk-usage.yml
- bash: |
export PATH=$PATH:$HOME/.local/bin:$HOME/Library/Python/2.7/bin/
2019-05-10 03:17:52 -05:00
mkdir -p $HOME/rustsrc
2019-05-06 13:15:52 -05:00
echo "##vso[task.setvariable variable=PATH;]$PATH"
2019-05-10 03:17:52 -05:00
curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin
2019-05-06 13:15:52 -05:00
chmod +x /usr/local/bin/sccache
curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin
chmod +x /usr/local/bin/stamp
2019-05-10 03:17:52 -05:00
2019-05-06 13:15:52 -05:00
export CC=`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/bin/clang
echo "##vso[task.setvariable variable=CC]$CC"
2019-05-10 03:17:52 -05:00
2019-05-06 13:15:52 -05:00
export CXX=`pwd`/clang+llvm-7.0.0-x86_64-apple-darwin/bin/clang++
echo "##vso[task.setvariable variable=CXX]$CXX"
2019-05-10 03:17:52 -05:00
2019-05-06 13:15:52 -05:00
echo "##vso[task.setvariable variable=AR]ar"
displayName: Prep
- bash: brew install gnu-tar
displayName: install a tar that works well
- bash: |
curl -f http://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz | tar xJf -
displayName: Download clang
- bash: |
brew update
brew install xz
brew install swig
condition: and(succeeded(), eq(variables['RUST_CHECK_TARGET'],'dist'))
displayName: Install xz and swigw
- bash: |
export RUN_SCRIPT="$BUILD_SOURCESDIRECTORY/src/ci/init_repo.sh . $HOME/rustsrc && src/ci/run.sh"
echo "##vso[task.setvariable variable=RUN_SCRIPT]$RUN_SCRIPT"
displayName: Prepare run script (init and run)
- template: show-environment-variables.yml
- template: verify-publish-toolstate.yml
- template: run-script.yml