Build/CI: dropped CircleCI and added clang workflow for github actions
This commit is contained in:
1 parent
cab6539def
commit
49e416924e
3 files changed
+36
-165
No files matched your search
@@ -0,0 +1,34 @@
|
||||
name: clang PCH
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -yq libboost-all-dev clang-11
|
||||
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-11 100 --slave /usr/bin/c++ c++ /usr/bin/clang++-11
|
||||
- name: Setup
|
||||
run: |
|
||||
mkdir bin
|
||||
cd bin
|
||||
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
|
||||
cd ..
|
||||
- name: Build
|
||||
run: |
|
||||
cd bin
|
||||
make -j 4 -k && make install
|
||||
- name: Unit tests
|
||||
run: |
|
||||
cd bin
|
||||
make test
|
||||
- name: Check executables
|
||||
run: |
|
||||
cd bin/check_install/bin
|
||||
./authserver --version
|
||||
./worldserver --version
|
||||
Reference in new issue
Block a user