Skip to content

Commit 1515129

Browse files
authored
Test Bahamut with Anope 2.0 only, not 2.1 (#307)
1 parent 3b22e47 commit 1515129

File tree

3 files changed

+102
-5
lines changed

3 files changed

+102
-5
lines changed

.github/workflows/test-devel.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,46 @@ jobs:
4242
name: installed-anope
4343
path: ~/artefacts-*.tar.gz
4444
retention-days: 1
45+
build-anope-2.0:
46+
runs-on: ubuntu-22.04
47+
steps:
48+
- name: Create directories
49+
run: cd ~/; mkdir -p .local/ go/
50+
- name: Cache dependencies
51+
uses: actions/cache@v4
52+
with:
53+
key: 3-${{ runner.os }}-anope-2.0-devel
54+
path: '~/.cache
55+
56+
${ github.workspace }/anope
57+
58+
'
59+
- uses: actions/checkout@v4
60+
- name: Set up Python 3.11
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: 3.11
64+
- name: Checkout Anope 2.0
65+
uses: actions/checkout@v4
66+
with:
67+
path: anope
68+
ref: '2.0'
69+
repository: anope/anope
70+
- name: Build Anope 2.0
71+
run: |
72+
cd $GITHUB_WORKSPACE/anope/
73+
sudo apt-get install ninja-build --no-install-recommends
74+
mkdir build && cd build
75+
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
76+
ninja install
77+
- name: Make artefact tarball
78+
run: cd ~; tar -czf artefacts-anope-2.0.tar.gz .local/ go/
79+
- name: Upload build artefacts
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: installed-anope-2.0
83+
path: ~/artefacts-*.tar.gz
84+
retention-days: 1
4585
build-bahamut:
4686
runs-on: ubuntu-22.04
4787
steps:
@@ -470,7 +510,7 @@ jobs:
470510
test-bahamut-anope:
471511
needs:
472512
- build-bahamut
473-
- build-anope
513+
- build-anope-2.0
474514
runs-on: ubuntu-22.04
475515
steps:
476516
- uses: actions/checkout@v4
@@ -486,7 +526,7 @@ jobs:
486526
- name: Download build artefacts
487527
uses: actions/download-artifact@v4
488528
with:
489-
name: installed-anope
529+
name: installed-anope-2.0
490530
path: '~'
491531
- name: Unpack artefacts
492532
run: cd ~; find -name 'artefacts-*.tar.gz' -exec tar -xzf '{}' \;

.github/workflows/test-stable.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,46 @@ jobs:
4242
name: installed-anope
4343
path: ~/artefacts-*.tar.gz
4444
retention-days: 1
45+
build-anope-2.0:
46+
runs-on: ubuntu-22.04
47+
steps:
48+
- name: Create directories
49+
run: cd ~/; mkdir -p .local/ go/
50+
- name: Cache dependencies
51+
uses: actions/cache@v4
52+
with:
53+
key: 3-${{ runner.os }}-anope-2.0-stable
54+
path: '~/.cache
55+
56+
${ github.workspace }/anope
57+
58+
'
59+
- uses: actions/checkout@v4
60+
- name: Set up Python 3.11
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: 3.11
64+
- name: Checkout Anope 2.0
65+
uses: actions/checkout@v4
66+
with:
67+
path: anope
68+
ref: 2.0.14
69+
repository: anope/anope
70+
- name: Build Anope 2.0
71+
run: |
72+
cd $GITHUB_WORKSPACE/anope/
73+
sudo apt-get install ninja-build --no-install-recommends
74+
mkdir build && cd build
75+
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
76+
ninja install
77+
- name: Make artefact tarball
78+
run: cd ~; tar -czf artefacts-anope-2.0.tar.gz .local/ go/
79+
- name: Upload build artefacts
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: installed-anope-2.0
83+
path: ~/artefacts-*.tar.gz
84+
retention-days: 1
4585
build-bahamut:
4686
runs-on: ubuntu-22.04
4787
steps:
@@ -513,7 +553,7 @@ jobs:
513553
test-bahamut-anope:
514554
needs:
515555
- build-bahamut
516-
- build-anope
556+
- build-anope-2.0
517557
runs-on: ubuntu-22.04
518558
steps:
519559
- uses: actions/checkout@v4
@@ -529,7 +569,7 @@ jobs:
529569
- name: Download build artefacts
530570
uses: actions/download-artifact@v4
531571
with:
532-
name: installed-anope
572+
name: installed-anope-2.0
533573
path: '~'
534574
- name: Unpack artefacts
535575
run: cd ~; find -name 'artefacts-*.tar.gz' -exec tar -xzf '{}' \;

workflows.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,23 @@ software:
357357
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
358358
ninja install
359359
360+
anope-2.0:
361+
name: Anope 2.0
362+
repository: anope/anope
363+
separate_build_job: true
364+
path: anope
365+
refs:
366+
stable: "2.0.14"
367+
release: null
368+
devel: "2.0"
369+
devel_release: null
370+
build_script: |
371+
cd $GITHUB_WORKSPACE/anope/
372+
sudo apt-get install ninja-build --no-install-recommends
373+
mkdir build && cd build
374+
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
375+
ninja install
376+
360377
dlk:
361378
name: Dlk
362379
repository: DalekIRC/Dalek-Services
@@ -435,7 +452,7 @@ tests:
435452
software: [bahamut]
436453

437454
bahamut-anope:
438-
software: [bahamut, anope]
455+
software: [bahamut, anope-2.0] # Anope 2.1.15 removes support for Bahamut
439456

440457
charybdis:
441458
software: [charybdis]

0 commit comments

Comments
 (0)