diff options
author | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-07-27 08:00:00 +0800 |
commit | 659c694c23d310dca4252dd316c03c0e00e1069d (patch) | |
tree | 3a163ffd8646317d093242556d9250c7b48a2a55 /ci | |
parent | 80549bb1cd948100f9755d3ba82eb1d714063dc4 (diff) | |
download | haxircd-docs-659c694c23d310dca4252dd316c03c0e00e1069d.tar.gz haxircd-docs-659c694c23d310dca4252dd316c03c0e00e1069d.zip |
CI: Add README and post-receive
Diffstat (limited to 'ci')
-rw-r--r-- | ci/README.md | 14 | ||||
-rwxr-xr-x | ci/post-receive | 10 |
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 |