mirror of
https://github.com/servo/servo.git
synced 2025-07-05 22:43:40 +01:00
Cache $CARGO_HOME
This commit is contained in:
parent
d731cf610e
commit
d0f228ff8c
2 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,8 @@ tasks:
|
||||||
source: ${event.compare}
|
source: ${event.compare}
|
||||||
scopes:
|
scopes:
|
||||||
- "queue:create-task:aws-provisioner-v1/github-worker"
|
- "queue:create-task:aws-provisioner-v1/github-worker"
|
||||||
|
- "docker-worker:cache:cargo-registry-cache"
|
||||||
|
- "docker-worker:cache:cargo-git-cache"
|
||||||
|
|
||||||
payload:
|
payload:
|
||||||
maxRunTime: 600
|
maxRunTime: 600
|
||||||
|
|
|
@ -19,9 +19,18 @@ payload = {
|
||||||
"owner": os.environ["DECISION_TASK_OWNER"],
|
"owner": os.environ["DECISION_TASK_OWNER"],
|
||||||
"source": os.environ["DECISION_TASK_SOURCE"],
|
"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": {
|
"payload": {
|
||||||
"maxRunTime": 600,
|
"maxRunTime": 600,
|
||||||
"image": "buildpack-deps:bionic-scm",
|
"image": "buildpack-deps:bionic-scm",
|
||||||
|
"cache": {
|
||||||
|
"cargo-registry-cache": "/root/.cargo/registry",
|
||||||
|
"cargo-git-cache": "/root/.cargo/git",
|
||||||
|
},
|
||||||
"command": [
|
"command": [
|
||||||
"/bin/bash",
|
"/bin/bash",
|
||||||
"--login",
|
"--login",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue