Compare commits
No commits in common. "dev/ci" and "master" have entirely different histories.
|
@ -1,46 +0,0 @@
|
||||||
pipeline {
|
|
||||||
parameters {
|
|
||||||
booleanParam 'CLEAN_BUILD'
|
|
||||||
}
|
|
||||||
|
|
||||||
options {
|
|
||||||
disableConcurrentBuilds()
|
|
||||||
}
|
|
||||||
|
|
||||||
agent {
|
|
||||||
kubernetes {
|
|
||||||
yamlFile 'ci/podTemplate.yaml'
|
|
||||||
yamlMergeStrategy merge()
|
|
||||||
workspaceVolume persistentVolumeClaimWorkspaceVolume(
|
|
||||||
claimName: 'buildroot-kitchenos'
|
|
||||||
)
|
|
||||||
defaultContainer 'build'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Clean') {
|
|
||||||
when {
|
|
||||||
expression {
|
|
||||||
params.CLEAN_BUILD == 'true'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
steps {
|
|
||||||
sh 'git clean -fdx'
|
|
||||||
sh 'rm -rf buildroot'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
sh '. ci/build.sh'
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
success {
|
|
||||||
dir('_build/images') {
|
|
||||||
archiveArtifacts 'sdcard.img'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
20
ci/build.sh
20
ci/build.sh
|
@ -1,20 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
BUILDROOT_REPO=https://gitlab.com/buildroot.org/buildroot.git
|
|
||||||
BUILDROOT_BRANCH=2025.05.x
|
|
||||||
|
|
||||||
DEFCONFIG=kitchenos_defconfig
|
|
||||||
|
|
||||||
if [ ! -d buildroot ]; then
|
|
||||||
git clone "${BUILDROOT_REPO}" --depth=1 -b "${BUILDROOT_BRANCH}"
|
|
||||||
else
|
|
||||||
git -C buildroot fetch --depth=1 origin "${BUILDROOT_BRANCH}"
|
|
||||||
git -C buildroot checkout -f "${BUILDROOT_BRANCH}"
|
|
||||||
git -C buildroot merge FETCH_HEAD --ff-only
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -f _build/.config ]; then
|
|
||||||
make -C buildroot O="${PWD}"/_build BR2_EXTERNAL="${PWD}" "${DEFCONFIG}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
make -C _build BR2_JLEVEL=4
|
|
|
@ -1,17 +0,0 @@
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: build
|
|
||||||
image: git.pyrocufflink.net/containerimages/buildroot
|
|
||||||
resources:
|
|
||||||
limits: &resources
|
|
||||||
cpu: 6
|
|
||||||
memory: 12Gi
|
|
||||||
requests: *resources
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /etc/ssh/ssh_known_hosts
|
|
||||||
name: ssh-known-hosts
|
|
||||||
subPath: ssh_known_hosts
|
|
||||||
volumes:
|
|
||||||
- name: ssh-known-hosts
|
|
||||||
configMap:
|
|
||||||
name: ssh-known-hosts
|
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
export XDG_CURRENT_DESKTOP=sway
|
|
||||||
export XDG_SESSION_DESKTOP="${XDG_SESSION_DESKTOP:-sway}"
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
|
|
||||||
systemctl --user import-environment \
|
|
||||||
SWAYSOCK \
|
|
||||||
XDG_CURRENT_DESKTOP \
|
|
||||||
XDG_SESSION_DESKTOP \
|
|
||||||
XDG_SESSION_TYPE \
|
|
||||||
WAYLAND_DISPLAY
|
|
||||||
|
|
||||||
systemctl --user reset-failed
|
|
||||||
systemctl --user start sway-session.target
|
|
||||||
|
|
||||||
shutdown() {
|
|
||||||
systemctl --user stop sway-session.target
|
|
||||||
}
|
|
||||||
|
|
||||||
trap shutdown INT TERM
|
|
||||||
swaymsg -t subscribe '["shutdown"]'
|
|
||||||
shutdown
|
|
Loading…
Reference in New Issue