Skip to content

Commit 49e4169

Browse files
committed
Build/CI: dropped CircleCI and added clang workflow for github actions
1 parent cab6539 commit 49e4169

File tree

3 files changed

+36
-165
lines changed

3 files changed

+36
-165
lines changed

.circleci/config.yml

Lines changed: 0 additions & 162 deletions
This file was deleted.

.github/workflows/clang-build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: clang PCH
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-22.04
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Dependencies
13+
run: |
14+
sudo apt-get update && sudo apt-get install -yq libboost-all-dev clang-11
15+
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-11 100 --slave /usr/bin/c++ c++ /usr/bin/clang++-11
16+
- name: Setup
17+
run: |
18+
mkdir bin
19+
cd bin
20+
cmake ../ -DWITH_WARNINGS=1 -DWITH_COREDEBUG=0 -DUSE_COREPCH=1 -DUSE_SCRIPTPCH=1 -DTOOLS=1 -DSCRIPTS=static -DSERVERS=1 -DNOJEM=0 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang-11 -DCMAKE_CXX_COMPILER=clang++-11 -DCMAKE_C_FLAGS="-Werror" -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_C_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_CXX_FLAGS_DEBUG="-DNDEBUG" -DCMAKE_INSTALL_PREFIX=check_install -DBUILD_TESTING=0
21+
cd ..
22+
- name: Build
23+
run: |
24+
cd bin
25+
make -j 4 -k && make install
26+
- name: Unit tests
27+
run: |
28+
cd bin
29+
make test
30+
- name: Check executables
31+
run: |
32+
cd bin/check_install/bin
33+
./authserver --version
34+
./worldserver --version

.github/workflows/gcc-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: GCC
1+
name: GCC PCH
22

33
on:
44
push:
@@ -31,5 +31,4 @@ jobs:
3131
run: |
3232
cd bin/check_install/bin
3333
./authserver --version
34-
./bnetserver --version
35-
./worldserver --version
34+
./worldserver --version

0 commit comments

Comments
 (0)