ci: cache packages and compiler cache separately.
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
parent
5efe8cb8d5
commit
5cff55decf
88
.drone.yml
88
.drone.yml
|
@ -21,7 +21,7 @@ steps:
|
|||
- .drone/patch_defconfig.sh
|
||||
- ./buildroot_make.sh rpi2_defconfig
|
||||
|
||||
- name: restore cache
|
||||
- name: restore packages
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
|
@ -32,13 +32,13 @@ steps:
|
|||
secret_key:
|
||||
from_secret: cache_aks
|
||||
restore: true
|
||||
filename: "cache_rpi2.tar"
|
||||
filename: "packages_rpi2.tar"
|
||||
|
||||
- name: build
|
||||
- name: update packages
|
||||
commands:
|
||||
- ./buildroot_make.sh -j4
|
||||
- ./buildroot_make.sh source
|
||||
|
||||
- name: save cache
|
||||
- name: save packages
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
|
@ -50,9 +50,41 @@ steps:
|
|||
from_secret: cache_aks
|
||||
rebuild: true
|
||||
flush: true
|
||||
filename: "cache_rpi2.tar"
|
||||
filename: "packages_rpi2.tar"
|
||||
mount:
|
||||
- ./dl
|
||||
|
||||
- name: restore compiler cache
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
endpoint: https://s3.ap-northeast-1.wasabisys.com
|
||||
root: "imi415-ci-artifacts"
|
||||
access_key:
|
||||
from_secret: cache_ak
|
||||
secret_key:
|
||||
from_secret: cache_aks
|
||||
restore: true
|
||||
filename: "ccache_rpi2.tar"
|
||||
|
||||
- name: build
|
||||
commands:
|
||||
- ./buildroot_make.sh -j4
|
||||
|
||||
- name: save compiler cache
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
endpoint: https://s3.ap-northeast-1.wasabisys.com
|
||||
root: "imi415-ci-artifacts"
|
||||
access_key:
|
||||
from_secret: cache_ak
|
||||
secret_key:
|
||||
from_secret: cache_aks
|
||||
rebuild: true
|
||||
flush: true
|
||||
filename: "ccache_rpi2.tar"
|
||||
mount:
|
||||
- ./ccache
|
||||
|
||||
---
|
||||
|
@ -78,7 +110,7 @@ steps:
|
|||
- .drone/patch_defconfig.sh
|
||||
- ./buildroot_make.sh tlt113_minievm_defconfig
|
||||
|
||||
- name: restore cache
|
||||
- name: restore packages
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
|
@ -89,13 +121,13 @@ steps:
|
|||
secret_key:
|
||||
from_secret: cache_aks
|
||||
restore: true
|
||||
filename: "cache_t113i.tar"
|
||||
filename: "packages_t113i.tar"
|
||||
|
||||
- name: build
|
||||
- name: update packages
|
||||
commands:
|
||||
- ./buildroot_make.sh -j4
|
||||
- ./buildroot_make.sh source
|
||||
|
||||
- name: save cache
|
||||
- name: save packages
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
|
@ -107,7 +139,39 @@ steps:
|
|||
from_secret: cache_aks
|
||||
rebuild: true
|
||||
flush: true
|
||||
filename: "cache_t113i.tar"
|
||||
filename: "packages_t113i.tar"
|
||||
mount:
|
||||
- ./dl
|
||||
|
||||
- name: restore compiler cache
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
endpoint: https://s3.ap-northeast-1.wasabisys.com
|
||||
root: "imi415-ci-artifacts"
|
||||
access_key:
|
||||
from_secret: cache_ak
|
||||
secret_key:
|
||||
from_secret: cache_aks
|
||||
restore: true
|
||||
filename: "ccache_t113i.tar"
|
||||
|
||||
- name: build
|
||||
commands:
|
||||
- ./buildroot_make.sh -j4
|
||||
|
||||
- name: save compiler cache
|
||||
image: plugins/s3-cache
|
||||
settings:
|
||||
pull: true
|
||||
endpoint: https://s3.ap-northeast-1.wasabisys.com
|
||||
root: "imi415-ci-artifacts"
|
||||
access_key:
|
||||
from_secret: cache_ak
|
||||
secret_key:
|
||||
from_secret: cache_aks
|
||||
rebuild: true
|
||||
flush: true
|
||||
filename: "ccache_t113i.tar"
|
||||
mount:
|
||||
- ./ccache
|
||||
|
|
Loading…
Reference in New Issue