summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-07-27 08:00:00 +0800
commit659c694c23d310dca4252dd316c03c0e00e1069d (patch)
tree3a163ffd8646317d093242556d9250c7b48a2a55
parent80549bb1cd948100f9755d3ba82eb1d714063dc4 (diff)
downloadhaxircd-docs-659c694c23d310dca4252dd316c03c0e00e1069d.tar.gz
haxircd-docs-659c694c23d310dca4252dd316c03c0e00e1069d.zip
CI: Add README and post-receive
-rw-r--r--ci/README.md14
-rwxr-xr-xci/post-receive10
2 files changed, 24 insertions, 0 deletions
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