mirror of https://github.com/progval/irctest.git
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
|
# This file was auto-generated by make_workflows.py.
|
||
|
# Do not edit it manually, modifications will be lost.
|
||
|
|
||
|
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:
|
||
|
key: ${{ runner.os }}-inspircd
|
||
|
path: |-
|
||
|
~/.cache
|
||
|
$GITHUB_WORKSPACE/inspircd
|
||
|
- name: Install dependencies
|
||
|
run: |-
|
||
|
sudo apt-get install atheme-services
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install pytest -r requirements.txt
|
||
|
- name: Checkout InspIRCd
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
path: inspircd
|
||
|
ref: master
|
||
|
repository: inspircd/inspircd
|
||
|
- name: Build InspIRCd
|
||
|
run: |
|
||
|
cd $GITHUB_WORKSPACE/inspircd/
|
||
|
patch src/inspircd.cpp < $GITHUB_WORKSPACE/inspircd_mainloop.patch
|
||
|
./configure --prefix=$HOME/.local/inspircd --development
|
||
|
make -j 4
|
||
|
make install
|
||
|
- name: Test with pytest
|
||
|
run: PATH=~/.local/inspircd/bin:$PATH make inspircd
|
||
|
name: irctest with InspIRCd
|
||
|
'on':
|
||
|
schedule:
|
||
|
- cron: 51 8 * * 6
|
||
|
- cron: 51 8 * * 0
|
||
|
- cron: 51 17 * * *
|