forked from wasmerio/wasmer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ae6629
commit a82907e
Showing
4 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This template installs CMake (if doesn't exist in the systems) | ||
|
||
steps: | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v cmake`" ]; then | ||
echo `command -v cmake` `cmake --version` installed | ||
else | ||
curl -O https://cmake.org/files/v3.4/cmake-3.4.1-Darwin-x86_64.tar.gz | ||
tar xf cmake-3.4.1-Darwin-x86_64.tar.gz | ||
export CMAKE_BIN_PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin" | ||
echo "##vso[task.prependpath]$CMAKE_BIN_PATH" | ||
fi | ||
displayName: "Install CMake (macOS)" | ||
condition: eq(variables['Agent.OS'], 'Darwin') | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v cmake`" ]; then | ||
echo `command -v cmake` `cmake --version` installed | ||
else | ||
curl -O https://cmake.org/files/v3.4/cmake-3.4.1-Linux-x86_64.tar.gz | ||
tar xf cmake-3.4.1-Linux-x86_64.tar.gz | ||
export CMAKE_BIN_PATH="`pwd`/cmake-3.4.1-Linux-x86_64/CMake.app/Contents/bin" | ||
echo "##vso[task.prependpath]$CMAKE_BIN_PATH" | ||
fi | ||
displayName: "Install CMake (Linux)" | ||
condition: eq(variables['Agent.OS'], 'Linux') | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v cmake`" ]; then | ||
echo `command -v cmake` `cmake --version` installed | ||
else | ||
chocolatey install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
fi | ||
displayName: "Install CMake (Windows)" | ||
condition: eq(variables['Agent.OS'], 'Windows_NT') | ||
- bash: | | ||
set -ex | ||
cmake --version | ||
displayName: CMake version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This template installs LLVM (if doesn't exist in the systems) | ||
|
||
steps: | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v llvm-config`" ]; then | ||
echo `command -v llvm-config` `llvm-config --version` installed | ||
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" | ||
fi | ||
displayName: "Install LLVM (macOS)" | ||
condition: eq(variables['Agent.OS'], 'Darwin') | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v llvm-config`" ]; then | ||
echo `command -v llvm-config` `llvm-config --version` installed | ||
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" | ||
fi | ||
displayName: "Install LLVM (Linux)" | ||
condition: eq(variables['Agent.OS'], 'Linux') | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v llvm-config`" ]; then | ||
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" | ||
# chocolatey install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
fi | ||
displayName: "Install LLVM (Windows)" | ||
condition: eq(variables['Agent.OS'], 'Windows_NT') | ||
- bash: | | ||
set -ex | ||
llvm-config --version | ||
displayName: LLVM version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters