Use ninja for building

This commit is contained in:
Jupeyy 2021-08-16 11:17:08 +02:00
parent 3d91628da2
commit 55b6d27d36

View file

@ -38,7 +38,7 @@ jobs:
if: matrix.language == 'cpp'
run: |
sudo apt-get update -y
sudo apt-get install pkg-config cmake libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libboost-dev libmariadbclient-dev libmysqlcppconn-dev libwebsockets-dev -y
sudo apt-get install pkg-config cmake ninja-build libfreetype6-dev libnotify-dev libsdl2-dev libsqlite3-dev libboost-dev libmariadbclient-dev libmysqlcppconn-dev libwebsockets-dev -y
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
@ -55,8 +55,8 @@ jobs:
run: |
mkdir release
cd release
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DANTIBOT=ON -DMYSQL=ON -DWEBSOCKETS=ON ..
cmake --build . --config RelWithDebInfo --parallel --target everything
cmake -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DANTIBOT=ON -DMYSQL=ON -DWEBSOCKETS=ON ..
cmake --build . --config RelWithDebInfo --target everything
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1