fm10k/.drone.jsonnet

55 lines
2.7 KiB
JavaScript
Raw Normal View History

2020-12-31 04:09:15 +00:00
local Pipeline(image, version, arch, extra, depinstall, buildKernel) = {
kind: "pipeline",
type: "docker",
2020-12-31 04:09:15 +00:00
name: image+"-"+version+"-"+arch,
2020-12-31 00:24:01 +00:00
platform: {
os: "linux",
2020-12-31 04:09:15 +00:00
arch: arch
2020-12-31 00:24:01 +00:00
},
steps: [
{
name: "build",
image: image+":"+version,
commands: [
depinstall+" make gcc "+extra,
"cd src",
"make clean BUILD_KERNEL=\"$("+buildKernel+")\"",
"make -j $(nproc) CONFIG_UIO=1 BUILD_KERNEL=\"$("+buildKernel+")\""
]
}
]
};
2020-12-31 04:09:15 +00:00
local AptPipeline(image, version, arch, extra, buildKernel) = Pipeline(image, version, arch, extra, "apt update && DEBIAN_FRONTEND=noninteractive apt install -y", buildKernel);
2020-12-31 04:09:15 +00:00
local PacManPipeline(image, version, arch, extra, buildKernel) = Pipeline(image, version, arch, extra, "pacman -Syy && pacman --noconfirm -S", buildKernel);
2020-12-31 04:09:15 +00:00
local ApkPipeline(image, version, arch, extra, buildKernel) = Pipeline(image, version, arch, extra, "apk add --update gcc musl-dev", buildKernel);
2020-12-31 04:09:15 +00:00
local YumPipeline(image, version, arch, extra, buildKernel) = Pipeline(image, version, arch, extra, "yum install -y", buildKernel);
2020-12-31 04:09:15 +00:00
local XbpsPipeline(image, version, arch, extra, buildKernel) = Pipeline(image, version, arch, extra, "xbps-install -Sy", buildKernel);
[
2020-12-31 04:09:15 +00:00
AptPipeline("ubuntu", "20.04", "amd64", "linux-headers-generic", "ls --sort time /lib/modules/ | head -n 1"),
AptPipeline("ubuntu", "20.04", "arm64", "linux-headers-generic", "ls --sort time /lib/modules/ | head -n 1"),
2021-08-04 01:49:00 +00:00
AptPipeline("debian", "bullseye", "amd64", "linux-headers-amd64", "ls --sort time /lib/modules/ | head -n 1"),
AptPipeline("debian", "bullseye", "arm64", "linux-headers-arm64", "ls --sort time /lib/modules/ | head -n 1"),
2021-08-04 05:25:18 +00:00
2020-12-31 04:09:15 +00:00
AptPipeline("debian", "buster", "amd64", "linux-headers-amd64", "ls --sort time /lib/modules/ | head -n 1"),
2021-08-04 05:25:18 +00:00
2020-12-31 04:09:15 +00:00
AptPipeline("debian", "stretch", "amd64", "linux-headers-amd64", "ls --sort time /lib/modules/ | head -n 1"),
2021-08-04 05:25:18 +00:00
2020-12-31 04:09:15 +00:00
AptPipeline("debian", "jessie", "amd64", "linux-headers-amd64", "ls --sort time /lib/modules/ | head -n 1"),
2020-12-31 04:09:15 +00:00
YumPipeline("fedora", "latest", "amd64", "kernel-devel kernel-headers", "ls --sort time /usr/src/kernels/ | head -n 1"),
YumPipeline("fedora", "latest", "arm64", "kernel-devel kernel-headers", "ls --sort time /usr/src/kernels/ | head -n 1"),
PacManPipeline("archlinux", "latest", "amd64", "linux-headers libffi", "ls --sort time /lib/modules/ | head -n 1"),
2020-12-31 04:09:15 +00:00
ApkPipeline("alpine", "latest", "amd64", "linux-headers linux-lts-dev", "ls -t /lib/modules/ | head -n 1"),
ApkPipeline("alpine", "latest", "arm64", "linux-headers linux-lts-dev", "ls -t /lib/modules/ | head -n 1"),
2020-12-31 04:09:15 +00:00
XbpsPipeline("voidlinux/voidlinux", "latest", "amd64", "linux-headers", "ls --sort time /lib/modules/ | head -n 1")
]