Start adding support for Unreal

Not all tests pass yet, Unreal uses the protocol in ways we did not anticipate.
This commit is contained in:
2021-07-01 23:10:37 +02:00
parent cd58d14608
commit 2d2e788275
8 changed files with 280 additions and 11 deletions

55
.github/workflows/unrealircd.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: irctest with UnrealIRCd
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Cache dependencies
uses: actions/cache@v2
with:
path: |
~/.cache
$GITHUB_WORKSPACE/unrealircd
key: ${{ runner.os }}-unrealircd
- name: Install dependencies
run: |
sudo apt-get install atheme-services
python -m pip install --upgrade pip
pip install pytest -r requirements.txt
- name: Checkout UnrealIRCd
uses: actions/checkout@v2
with:
repository: unrealircd/unrealircd
ref: unreal52
path: unrealircd
- name: Build UnrealIRCd
run: |
cd $GITHUB_WORKSPACE/unrealircd/
cp $GITHUB_WORKSPACE/unreal_config.settings config.settings
CFLAGS=-O0 ./Config -quick
make -j 4
echo "\n\n\n\n\n\n" | make pem
make install
- name: Test with pytest
run: |
PATH=~/.local/unrealircd/bin:$PATH make unreal