Pudding_LWGW_BR2/.drone.yml

114 lines
2.3 KiB
YAML

---
kind: pipeline
type: vm
name: Build for 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 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: "cache_rpi2.tar"
- name: build
commands:
- ./buildroot_make.sh -j4
- name: save 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: "cache_rpi2.tar"
mount:
- ./dl
- ./ccache
---
kind: pipeline
type: vm
name: Build for 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 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: "cache_t113i.tar"
- name: build
commands:
- ./buildroot_make.sh -j4
- name: save 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: "cache_t113i.tar"
mount:
- ./dl
- ./ccache