From 659c694c23d310dca4252dd316c03c0e00e1069d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 27 Jul 2024 08:00:00 +0800 Subject: CI: Add README and post-receive --- ci/README.md | 14 ++++++++++++++ ci/post-receive | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ci/README.md create mode 100755 ci/post-receive diff --git a/ci/README.md b/ci/README.md new file mode 100644 index 0000000..3959a38 --- /dev/null +++ b/ci/README.md @@ -0,0 +1,14 @@ +# HaxIRCd CI Misc Files + +HaxIRCd is often manually tested with the Codeberg CI. The main code +repository contains a directory called `.woodpecker` which contains build +manifests to build on Alpine Linux, Arch Linux, Debian GNU/Linux, and Fedora. + +HaxIRCd also aims to support BSD systems. We do not have access to CI that +provide BSD virtual machines; therefore, I (Runxi Yu) occasionally pushes to +[tilde.institute](https://tilde.institute), which runs a git post-receive hook +that builds HaxIRCd. HaxIRCd should be relatively lightweight to build, and I +only occasionally push there, so it shouldn't be a resource hog. + +This repository also contains samples `.makeopts` and `config.c` to be used in +CI. diff --git a/ci/post-receive b/ci/post-receive new file mode 100755 index 0000000..4efe420 --- /dev/null +++ b/ci/post-receive @@ -0,0 +1,10 @@ +#!/bin/sh +set -xu +DSTDIR="$HOME/build/haxircd" +rm -rf "$DSTDIR" +git clone "$(pwd)" "$DSTDIR" +cd "$DSTDIR" +curl -o config.c 'https://git.andrewyu.org/hax/haxircd-docs.git/plain/ci/config.c' +curl -o .makeopts 'https://git.andrewyu.org/hax/haxircd-docs.git/plain/ci/.makeopts' +sed -ibak 's/|| errno == ENONET//g' networks/*.c +gmake -- cgit v1.2.3