Added Cache, improved LLVM install

This commit is contained in:
Syrus 2019-08-10 15:48:56 -07:00
parent a82907eb22
commit 141fad86b3
2 changed files with 18 additions and 7 deletions

View File

@ -8,8 +8,9 @@ steps:
else
curl -O https://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-apple-darwin.tar.xz
tar xf clang+llvm-8.0.0-x86_64-apple-darwin.tar.xz
export LLVM_SYS_80_PREFIX="`pwd`/clang+llvm-8.0.0-x86_64-apple-darwin/"
echo "##vso[task.prependpath]$LLVM_SYS_80_PREFIX/bin"
export LLVM_PATH="`pwd`/clang+llvm-8.0.0-x86_64-apple-darwin/"
echo "##vso[task.prependpath]$LLVM_PATH/bin"
echo "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX]$LLVM_PATH"
fi
displayName: "Install LLVM (macOS)"
condition: eq(variables['Agent.OS'], 'Darwin')
@ -21,8 +22,9 @@ steps:
else
curl -O https://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
tar xf clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
export LLVM_SYS_80_PREFIX="`pwd`/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/"
echo "##vso[task.prependpath]$LLVM_SYS_80_PREFIX/bin"
export LLVM_PATH="`pwd`/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-16.04/"
echo "##vso[task.prependpath]$LLVM_PATH/bin"
echo "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX]$LLVM_PATH"
fi
displayName: "Install LLVM (Linux)"
condition: eq(variables['Agent.OS'], 'Linux')
@ -33,9 +35,10 @@ steps:
echo `command -v cmake` `llvm-config --version` installed
else
curl -O https://github.com/wasmerio/windows-llvm-build/releases/download/v8.0.0/llvm-8.0.0-install.zip
unzip llvm-8.0.0-install.zip
export LLVM_SYS_80_PREFIX="`pwd`/llvm-8.0.0-install/"
echo "##vso[task.prependpath]$LLVM_SYS_80_PREFIX/bin"
7z x llvm-8.0.0-install.zip
export LLVM_PATH="`pwd`/llvm-8.0.0-install/"
echo "##vso[task.prependpath]$LLVM_PATH/bin"
echo "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX]$LLVM_PATH"
# chocolatey install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
fi
displayName: "Install LLVM (Windows)"

View File

@ -41,6 +41,14 @@ jobs:
- template: .azure/install-rust.yml
- template: .azure/install-cmake.yml
- template: .azure/install-llvm.yml
- task: CacheBeta@0
inputs:
key: |
cargo
$(Agent.OS)
$(Build.SourcesDirectory)/Cargo.lock
path: $(Build.SourcesDirectory)/target
displayName: Cache Cargo Target
- bash: make check
displayName: Check with Flags
- bash: make test