191 lines
3.9 KiB
YAML
191 lines
3.9 KiB
YAML
---
|
|
kind: pipeline
|
|
type: vm
|
|
name: build_rpi2
|
|
|
|
pool:
|
|
use: do-docker-20-04
|
|
|
|
steps:
|
|
- name: submodules
|
|
commands:
|
|
- git submodule update --init --recursive
|
|
|
|
- name: prepare environment
|
|
environment:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
CONFIG_NAME: "rpi2_defconfig"
|
|
commands:
|
|
- .drone/install_dependencies.sh
|
|
- .drone/populate_overlay.sh
|
|
- .drone/patch_defconfig.sh
|
|
- ./buildroot_make.sh rpi2_defconfig
|
|
|
|
- name: restore packages
|
|
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: "packages_rpi2.tar"
|
|
|
|
- name: update packages
|
|
commands:
|
|
- ./buildroot_make.sh source
|
|
|
|
- name: save packages
|
|
image: plugins/s3-cache
|
|
settings:
|
|
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
|
|
filename: "packages_rpi2.tar"
|
|
mount:
|
|
- ./dl
|
|
|
|
- name: restore compiler cache
|
|
image: plugins/s3-cache
|
|
settings:
|
|
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:
|
|
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
|
|
filename: "ccache_rpi2.tar"
|
|
mount:
|
|
- ./ccache
|
|
|
|
---
|
|
kind: pipeline
|
|
type: vm
|
|
name: build_t113i
|
|
|
|
pool:
|
|
use: do-docker-20-04
|
|
|
|
steps:
|
|
- name: submodules
|
|
commands:
|
|
- git submodule update --init --recursive
|
|
|
|
- name: prepare environment
|
|
environment:
|
|
DEBIAN_FRONTEND: noninteractive
|
|
CONFIG_NAME: "tlt113_minievm_defconfig"
|
|
commands:
|
|
- .drone/install_dependencies.sh
|
|
- .drone/populate_overlay.sh
|
|
- .drone/patch_defconfig.sh
|
|
- ./buildroot_make.sh tlt113_minievm_defconfig
|
|
|
|
- name: restore packages
|
|
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: "packages_t113i.tar"
|
|
|
|
- name: update packages
|
|
commands:
|
|
- ./buildroot_make.sh source
|
|
|
|
- name: save packages
|
|
image: plugins/s3-cache
|
|
settings:
|
|
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
|
|
filename: "packages_t113i.tar"
|
|
mount:
|
|
- ./dl
|
|
|
|
- name: restore compiler cache
|
|
image: plugins/s3-cache
|
|
settings:
|
|
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:
|
|
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
|
|
filename: "ccache_t113i.tar"
|
|
mount:
|
|
- ./ccache
|
|
|
|
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: Cache Management
|
|
|
|
steps:
|
|
- name: flush old cache
|
|
image: plugins/s3-cache
|
|
pull: true
|
|
settings:
|
|
endpoint: https://s3.ap-northeast-1.wasabisys.com
|
|
root: "imi415-ci-artifacts"
|
|
access_key:
|
|
from_secret: cache_ak
|
|
secret_key:
|
|
from_secret: cache_aks
|
|
flush: true
|
|
flush_age: 90
|
|
|
|
depends_on:
|
|
- build_rpi2
|
|
- build_t113i
|