Build automation with Telegram and GitHub Integrations.
Steps (as root):
- Install git, ciel, pushpkg, rustc (with Cargo), compiler toolchain (LLVM/Clang)
mkdir -p /buildroots/buildit
cd /buildroots/buildit && git clone https://github.com/AOSC-Dev/buildit
cd /buildroots/buildit && ciel new
with maintainer calledAOSC OS Maintainers <[email protected]>
, making sure to create an instance named "main" when askedcp /buildroots/buildit/buildit/systemd/buildit-worker.service /etc/systemd/system
$EDITOR /etc/systemd/system/buildit-worker.service
:updateARCH
$EDITOR /buildroots/buildit/buildit/.env
: setBUILDIT_SERVER
,BUILDIT_WORKER_SECRET
BUILDIT_SSH_KEY
andBUILDIT_WORKER_PERFORMANCE
; for workers in China, optionally updateBUILDIT_RSYNC_HOST
torepo-cn.aosc.io
; for workers with special network environments, optionally setBUILDIT_PUSHPKG_OPTIONS
systemctl enable --now buildit-worker
chmod 600 /buildroots/buildit/buildit/.env
- Generate a new SSH key at the location of
BUILDIT_SSH_KEY
, and setupauthorized_keys
on repo.aosc.io (contact infra team) - Add SSH known hosts from repo.aosc.io, repo-cn.aosc.io and github.com:
ssh-keyscan repo.aosc.io >> ~/.ssh/known_hosts && ssh-keyscan repo-cn.aosc.io >> ~/.ssh/known_hosts && ssh-keyscan github.com >> ~/.ssh/known_hosts
Arch-specific notes:
- Add
RUSTFLAGS="-C link-arg=-fuse-ld=gold"
environment for loongson3