Skip to content

AOSC-Dev/buildit

Repository files navigation

AOSC BuildIt! Bot

Build automation with Telegram and GitHub Integrations.

Setting Up a BuildIt! Worker

Steps (as root):

  1. Install git, ciel, pushpkg, rustc (with Cargo), compiler toolchain (LLVM/Clang)
  2. mkdir -p /buildroots/buildit
  3. cd /buildroots/buildit && git clone https://github.com/AOSC-Dev/buildit
  4. cd /buildroots/buildit && ciel new, making sure to create an instance named "main" when asked
  5. cp /buildroots/buildit/buildit/systemd/buildit-worker.service /etc/systemd/system
  6. $EDITOR /etc/systemd/system/buildit-worker.service:update ARCH
  7. $EDITOR /buildroots/buildit/buildit/.env: set BUILDIT_SERVER, BUILDIT_WORKER_SECRET BUILDIT_SSH_KEY and BUILDIT_WORKER_PERFORMANCE; for workers in China, optionally update BUILDIT_RSYNC_HOST to repo-cn.aosc.io
  8. systemctl enable --now buildit-worker
  9. chmod 600 /buildroots/buildit/buildit/.env
  10. Setup SSH key of AOSC Maintainers at the location of BUILDIT_SSH_KEY
  11. Add SSH known hosts from repo.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