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.
Merge remote-tracking branch 'origin/master' into feature/llvm-osr
- Loading branch information
Showing
41 changed files
with
906 additions
and
791 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,18 @@ | ||
# This template installs InnoSetup | ||
|
||
steps: | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v iscc`" ]; then | ||
echo `command -v iscc` `iscc -?` installed | ||
else | ||
choco install innosetup -y | ||
fi | ||
displayName: Install InnoSetup - Windows | ||
condition: eq(variables['Agent.OS'], 'Windows_NT') | ||
# - bash: | | ||
# set -ex | ||
# iscc | ||
# displayName: InnoSetup | ||
# condition: eq(variables['Agent.OS'], 'Windows_NT') |
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,52 @@ | ||
# 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_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') | ||
- 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_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') | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v llvm-config`" ]; then | ||
echo `command -v cmake` `llvm-config --version` installed | ||
else | ||
curl -OL https://github.com/wasmerio/windows-llvm-build/releases/download/v8.0.0/llvm-8.0.0-install.zip | ||
7z x llvm-8.0.0-install.zip | ||
LLVM_PATH=`pwd`/llvm-8.0.0-install | ||
LLVM_PATH_WIN=$SYSTEM_DEFAULTWORKINGDIRECTORY\\llvm-8.0.0-install | ||
echo "##vso[task.prependpath]$LLVM_PATH/bin" | ||
echo "##vso[task.setvariable variable=LLVM_SYS_80_PREFIX]$LLVM_PATH_WIN" | ||
# chocolatey install cmake --installargs 'ADD_CMAKE_TO_PATH=System' | ||
fi | ||
displayName: "Install LLVM (Windows)" | ||
condition: eq(variables['Agent.OS'], 'Windows_NT') | ||
- bash: | | ||
set -ex | ||
env | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This template installs Rust (if doesn't exist in the systems) | ||
# Also installs the desired Rust toolchain | ||
|
||
# Template inspired by Tokio and wasm-bindgen templates | ||
# Tokio template: https://github.com/tokio-rs/tokio/blob/master/ci/azure-install-rust.yml | ||
# Wasm-bindgen template: https://github.com/rustwasm/wasm-bindgen/blob/master/ci/azure-install-rust.yml | ||
|
||
steps: | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v rustup`" ]; then | ||
echo `command -v rustup` `rustup -V` installed | ||
else | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUST_TOOLCHAIN | ||
echo "##vso[task.prependpath]$HOME/.cargo/bin" | ||
fi | ||
displayName: "Install Rust (Linux, macOS)" | ||
condition: not(eq(variables['Agent.OS'], 'Windows_NT')) | ||
- bash: | | ||
set -ex | ||
if [ -x "`command -v rustup`" ]; then | ||
echo `command -v rustup` `rustup -V` installed | ||
else | ||
choco install rust -y | ||
# curl -sSf -o rustup-init.exe https://win.rustup.rs | ||
# ./rustup-init.exe -y --default-toolchain $RUST_TOOLCHAIN | ||
# echo "##vso[task.prependpath]$USERPROFILE/.cargo/bin" | ||
fi | ||
displayName: "Install Rust (Windows)" | ||
condition: eq(variables['Agent.OS'], 'Windows_NT') | ||
- bash: | | ||
set -ex | ||
rustup update $RUST_TOOLCHAIN | ||
rustup default $RUST_TOOLCHAIN | ||
rustc -Vv | ||
cargo -V | ||
displayName: Install Rust | ||
- bash: echo "##vso[task.setvariable variable=RUSTC_VERSION;]`rustc --version`" | ||
displayName: Set rustc version in env var |
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,37 @@ | ||
# This template installs sccache (Shared Compilation Cache) | ||
# More info: https://github.com/mozilla/sccache | ||
|
||
# Template originally from wasm-bindgen | ||
# https://github.com/rustwasm/wasm-bindgen/blob/master/ci/azure-install-sccache.yml | ||
steps: | ||
- bash: | | ||
set -ex | ||
curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-unknown-linux-musl.tar.gz | tar xzf - | ||
sccache=`pwd`/sccache-0.2.10-x86_64-unknown-linux-musl/sccache | ||
echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]$sccache" | ||
displayName: Install sccache - Linux | ||
condition: eq( variables['Agent.OS'], 'Linux' ) | ||
- bash: | | ||
set -ex | ||
brew install [email protected] | ||
curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-apple-darwin.tar.gz | tar xzf - | ||
sccache=`pwd`/sccache-0.2.10-x86_64-apple-darwin/sccache | ||
echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]$sccache" | ||
displayName: Install sccache - Darwin | ||
condition: eq( variables['Agent.OS'], 'Darwin' ) | ||
- powershell: | | ||
Invoke-WebRequest https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-pc-windows-msvc.tar.gz -OutFile sccache.tar.gz | ||
tar xzf sccache.tar.gz | ||
Write-Host "##vso[task.setvariable variable=RUSTC_WRAPPER;]$pwd/sccache-0.2.10-x86_64-pc-windows-msvc/sccache.exe" | ||
displayName: Install sccache - Windows | ||
condition: eq( variables['Agent.OS'], 'Windows_NT' ) | ||
- bash: | | ||
set -ex | ||
env | ||
SCCACHE_ERROR_LOG=`pwd`/sccache.log RUST_LOG=debug $RUSTC_WRAPPER --start-server | ||
$RUSTC_WRAPPER -s | ||
cat sccache.log | ||
displayName: "start sccache" | ||
env: | ||
SCCACHE_AZURE_CONNECTION_STRING: $(SCCACHE_AZURE_CONNECTION_STRING) | ||
SCCACHE_AZURE_BLOB_CONTAINER: $(SCCACHE_AZURE_BLOB_CONTAINER) |
Oops, something went wrong.