mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-27 10:52:39 +03:00
377d75c2c3
This commit switches CI for the wasm-bindgen repository from a mixture of Travis and AppVeyor to Azure Pipelines. One of the main reasons for this was for me to personally get familiar with Azure Pipelines, but after finishing it I think that this'd be a good transition for this repository anyway. With azure pipelines we're able to get more parallelism (10 vs the 3 on Travis plus 1 on AppVeyor) as well as house all configuration in the same location for one service (Azure Pipelines covers all 3 major platforms). I've tested this a good deal on my own personal repository as well, and I believe that this is a lossless representation of our current CI, releases and all!
36 lines
1.5 KiB
YAML
36 lines
1.5 KiB
YAML
steps:
|
|
- bash: |
|
|
set -ex
|
|
curl -L https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-unknown-linux-musl.tar.gz | tar xzf -
|
|
sccache=`pwd`/sccache-0.2.8-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 openssl@1.1
|
|
curl -L https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-apple-darwin.tar.gz | tar xzf -
|
|
sccache=`pwd`/sccache-0.2.8-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.8/sccache-0.2.8-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.8-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:
|
|
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
|
|
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
|