Skip to content

Commit

Permalink
Update Anope. (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat authored Jan 4, 2024
1 parent d9ad638 commit dfd4290
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 33 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
uses: actions/checkout@v3
with:
path: anope
ref: 2.0.9
ref: '2.1'
repository: anope/anope
- name: Build Anope
run: |
cd $GITHUB_WORKSPACE/anope/
cp $GITHUB_WORKSPACE/data/anope/* .
CFLAGS=-O0 ./Config -quick
make -C build -j 4
make -C build install
sudo apt-get install ninja-build --no-install-recommends
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
ninja install
- name: Make artefact tarball
run: cd ~; tar -czf artefacts-anope.tar.gz .local/ go/
- name: Upload build artefacts
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-devel_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
uses: actions/checkout@v3
with:
path: anope
ref: 2.0.9
ref: '2.0'
repository: anope/anope
- name: Build Anope
run: |
cd $GITHUB_WORKSPACE/anope/
cp $GITHUB_WORKSPACE/data/anope/* .
CFLAGS=-O0 ./Config -quick
make -C build -j 4
make -C build install
sudo apt-get install ninja-build --no-install-recommends
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
ninja install
- name: Make artefact tarball
run: cd ~; tar -czf artefacts-anope.tar.gz .local/ go/
- name: Upload build artefacts
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ jobs:
uses: actions/checkout@v3
with:
path: anope
ref: 2.0.9
ref: 2.0.14
repository: anope/anope
- name: Build Anope
run: |
cd $GITHUB_WORKSPACE/anope/
cp $GITHUB_WORKSPACE/data/anope/* .
CFLAGS=-O0 ./Config -quick
make -C build -j 4
make -C build install
sudo apt-get install ninja-build --no-install-recommends
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
ninja install
- name: Make artefact tarball
run: cd ~; tar -czf artefacts-anope.tar.gz .local/ go/
- name: Upload build artefacts
Expand Down
8 changes: 0 additions & 8 deletions data/anope/config.cache

This file was deleted.

4 changes: 2 additions & 2 deletions irctest/controllers/anope_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ def run(self, protocol: str, server_hostname: str, server_port: int) -> None:
pass

assert self.directory
services_path = shutil.which("services")
services_path = shutil.which("anope")
assert services_path

# Config and code need to be in the same directory, *obviously*
(self.directory / "lib").symlink_to(Path(services_path).parent.parent / "lib")

self.proc = subprocess.Popen(
[
"services",
"anope",
"-n", # don't fork
"--config=services.conf", # can't be an absolute path
# "--logdir",
Expand Down
16 changes: 8 additions & 8 deletions workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,16 @@ software:
separate_build_job: true
path: anope
refs:
stable: "2.0.9"
release: "2.0.9"
devel: "2.0.9"
devel_release: "2.0.9"
stable: "2.0.14"
release: "2.1.1"
devel: "2.1"
devel_release: "2.0"
build_script: |
cd $GITHUB_WORKSPACE/anope/
cp $GITHUB_WORKSPACE/data/anope/* .
CFLAGS=-O0 ./Config -quick
make -C build -j 4
make -C build install
sudo apt-get install ninja-build --no-install-recommends
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local/ -DPROGRAM_NAME=anope -DUSE_PCH=ON -GNinja ..
ninja install
dlk:
name: Dlk
Expand Down

0 comments on commit dfd4290

Please sign in to comment.