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.
Added sscache to improve compilation times
- Loading branch information
1 parent
ee1ca08
commit 28ebba4
Showing
3 changed files
with
45 additions
and
0 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
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,41 @@ | ||
# This template installs sccache (Shared Compilation Cache) | ||
# More info: https://github.com/mozilla/sccache | ||
|
||
steps: | ||
|
||
- bash: | | ||
set -e | ||
curl -Lfo sccache.tar.gz https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-apple-darwin.tar.gz | ||
tar -xzf sccache.tar.gz | ||
cp sccache-*/sccache /usr/local/bin/ | ||
displayName: Install sccache (macOS) | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin')) | ||
- bash: | | ||
set -e | ||
curl -Lfo sccache.tar.gz https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-unknown-linux-musl.tar.gz | ||
tar -xzf sccache.tar.gz | ||
sudo cp sccache-*/sccache /usr/local/bin/ | ||
displayName: Install sccache (Linux) | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) | ||
- bash: | | ||
curl -Lfo sccache.tar.gz https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-pc-windows-msvc.tar.gz | ||
tar -xzf sccache.tar.gz | ||
move sccache-* sccache | ||
echo "##vso[task.prependpath]%CD%\sccache" | ||
displayName: Install sccache (Windows) | ||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT')) | ||
- bash: | | ||
set -ex | ||
sccache -V | ||
displayName: sccache version | ||
- bash: | | ||
set -ex | ||
echo "##vso[task.setvariable variable=RUSTC_WRAPPER;]sccache" | ||
SCCACHE_ERROR_LOG=`pwd`/sccache.log RUST_LOG=debug sscache --start-server | ||
sscache -s | ||
cat sccache.log | ||
displayName: Start sccache |
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