mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-05 02:20:19 +00:00
Trying to improve cache time
This commit is contained in:
parent
accedf1139
commit
d9f2cded26
@ -33,12 +33,26 @@ steps:
|
||||
$RUSTC_WRAPPER -s
|
||||
cat sccache.log
|
||||
displayName: "start sccache"
|
||||
condition: not(eq( variables['Agent.OS'], 'Windows_NT' ))
|
||||
env:
|
||||
SCCACHE_AZURE_CONNECTION_STRING: $(SCCACHE_AZURE_CONNECTION_STRING)
|
||||
SCCACHE_AZURE_BLOB_CONTAINER: $(SCCACHE_AZURE_BLOB_CONTAINER)
|
||||
|
||||
# Only use Azure pipelines cache in Windows
|
||||
- bash: |
|
||||
set -ex
|
||||
env
|
||||
mkdir -p $SCCACHE_DIR
|
||||
SCCACHE_ERROR_LOG=`pwd`/sccache.log RUST_LOG=debug $RUSTC_WRAPPER --start-server
|
||||
$RUSTC_WRAPPER -s
|
||||
cat sccache.log
|
||||
displayName: "start sccache"
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
env:
|
||||
SCCACHE_DIR: $(Pipeline.Workspace)/.sccache
|
||||
- task: CacheBeta@0
|
||||
inputs:
|
||||
key: sccache | $(Agent.OS) | Cargo.lock
|
||||
path: $(Pipeline.Workspace)/.sccache
|
||||
displayName: Cache Cargo Target
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
|
Loading…
Reference in New Issue
Block a user