Pudding_LWGW_BR2/.drone.yml

128 lines
2.6 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: dependencies
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- apt-get update
- apt-get install -y sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget
- name: patch defconfig
environment:
CONFIG_NAME: "rpi2_defconfig"
commands:
- .drone/patch_defconfig.sh
- name: configure
commands:
- ./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: dependencies
environment:
DEBIAN_FRONTEND: noninteractive
commands:
- apt-get update
- apt-get install -y sed make binutils build-essential diffutils gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc findutils wget
- name: patch defconfig
environment:
CONFIG_NAME: "tlt113_minievm_defconfig"
commands:
- .drone/patch_defconfig.sh
- name: configure
commands:
- ./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