Cache $CARGO_HOME

This commit is contained in:
Simon Sapin 2018-08-29 18:08:28 +02:00
parent d731cf610e
commit d0f228ff8c
2 changed files with 11 additions and 0 deletions

View file

@ -19,9 +19,18 @@ payload = {
"owner": os.environ["DECISION_TASK_OWNER"],
"source": os.environ["DECISION_TASK_SOURCE"],
},
# https://docs.taskcluster.net/docs/reference/workers/docker-worker/docs/caches
"scopes": [
"docker-worker:cache:cargo-registry-cache",
"docker-worker:cache:cargo-git-cache",
],
"payload": {
"maxRunTime": 600,
"image": "buildpack-deps:bionic-scm",
"cache": {
"cargo-registry-cache": "/root/.cargo/registry",
"cargo-git-cache": "/root/.cargo/git",
},
"command": [
"/bin/bash",
"--login",