Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial version of Azure pipelines #656

Merged
merged 55 commits into from
Sep 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
462b0b5
Initial version of Azure pipelines
syrusakbary Aug 10, 2019
98711dd
Renamed azure pipelines config file
syrusakbary Aug 10, 2019
0ae6629
Fixed config
syrusakbary Aug 10, 2019
a82907e
Improved Azure install requirements
syrusakbary Aug 10, 2019
141fad8
Added Cache, improved LLVM install
syrusakbary Aug 10, 2019
bdf8a40
Fixed LLVM install in Windows
syrusakbary Aug 10, 2019
739f52a
Comment integration tests for now
syrusakbary Aug 10, 2019
86684bd
Fixed windows tests
syrusakbary Aug 10, 2019
ee1ca08
Moved check down
syrusakbary Aug 10, 2019
28ebba4
Added sscache to improve compilation times
syrusakbary Aug 11, 2019
1045d46
Fixed reference error
syrusakbary Aug 11, 2019
025bd9e
Trying to fix sccache install
syrusakbary Aug 11, 2019
f83e4ed
Fixed references to sccache
syrusakbary Aug 11, 2019
af12f62
Improved sccache usage
syrusakbary Aug 11, 2019
3517bd5
Trying to fix sccache
syrusakbary Aug 11, 2019
fff86f8
Fix sccache in Windows
syrusakbary Aug 11, 2019
8f31678
Improve cache
syrusakbary Aug 11, 2019
6b51717
Merge branch 'master' into feature/azure-pipelines
syrusakbary Aug 24, 2019
ff6b0bb
Added build step
syrusakbary Aug 24, 2019
9411ba6
Fixed windows make release llvm
syrusakbary Aug 24, 2019
abcde5f
Trying to simplify cache
syrusakbary Aug 24, 2019
989e712
Use Azure Blog Storage cache
syrusakbary Aug 24, 2019
f772dbf
Fixed sccache
syrusakbary Aug 24, 2019
a18fdde
Trying to fix sccache
syrusakbary Aug 24, 2019
8739d90
Improved Azure pipelines integration
syrusakbary Aug 24, 2019
034ffcf
Use macos for linting
syrusakbary Aug 24, 2019
8f1a777
Added sccache log
syrusakbary Aug 24, 2019
8243cf0
Trying to fix azure build
syrusakbary Aug 25, 2019
01f1ad5
Trying to fix llvm in windows
syrusakbary Aug 25, 2019
998a25e
Fixed windows tests
syrusakbary Aug 25, 2019
410c113
Trying to fix windows LLVM PATH
syrusakbary Aug 25, 2019
2a1c78c
Added env to LLVM
syrusakbary Aug 25, 2019
d12c347
Trying to fix LLVM_PATH_WIN
syrusakbary Aug 25, 2019
0d45060
Trying to fix windows llvm
syrusakbary Aug 25, 2019
3d787b9
Small llvm path win fix
syrusakbary Aug 25, 2019
4da56d1
Fix C-API on Windows
syrusakbary Aug 26, 2019
2b08e19
Separate check out of tests
syrusakbary Aug 26, 2019
e48da87
Fixed rust toolchain for check
syrusakbary Aug 26, 2019
1dde19c
Added InnoSetup
syrusakbary Aug 26, 2019
8dc8291
Fixed innosetup install
syrusakbary Aug 26, 2019
a31dae2
Trying to improve InnoSetup
syrusakbary Aug 29, 2019
366c6e1
Improved Azure Pipelines to make the releases
syrusakbary Aug 29, 2019
d2eb01f
Updated azure pipelines with github publish
syrusakbary Sep 1, 2019
e8d666e
Updated status badges
syrusakbary Sep 1, 2019
74065ac
Fixed publish dependency
syrusakbary Sep 1, 2019
c47c8a4
Separated C-API from CLI. Format pipelines
syrusakbary Sep 1, 2019
576f8d5
Fixed githubConnection
syrusakbary Sep 1, 2019
5c2707a
Fixed names
syrusakbary Sep 1, 2019
1a1b966
Removed circleci and appveyor configs
syrusakbary Sep 1, 2019
77518a9
Fixed artifact releases
syrusakbary Sep 1, 2019
4ac4be2
Added changelog checks
syrusakbary Sep 1, 2019
b84287f
Use azure-pipelines in bors
syrusakbary Sep 1, 2019
9a6c7ed
Updated azure pipelines
syrusakbary Sep 1, 2019
5d1837b
Trigger only on the following branches
syrusakbary Sep 1, 2019
025d548
Trying to improve conditions of pipelines
syrusakbary Sep 1, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 0 additions & 78 deletions .appveyor.yml

This file was deleted.

43 changes: 43 additions & 0 deletions .azure/install-cmake.yml
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
18 changes: 18 additions & 0 deletions .azure/install-innosetup.yml
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')
52 changes: 52 additions & 0 deletions .azure/install-llvm.yml
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
43 changes: 43 additions & 0 deletions .azure/install-rust.yml
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
37 changes: 37 additions & 0 deletions .azure/install-sccache.yml
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)
Loading