added a makefile and edited the codeql

This commit is contained in:
vaxerski 2021-11-26 21:14:25 +01:00
parent d39851b164
commit 184207793d
3 changed files with 15 additions and 4 deletions

View file

@ -62,9 +62,9 @@ jobs:
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- run: |
make clear
make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1

1
.gitignore vendored
View file

@ -3,7 +3,6 @@ CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json

12
Makefile Normal file
View file

@ -0,0 +1,12 @@
all: cmake
release:
mkdir build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./ -B./build -G Ninja
cmake --build ./build --config Release --target all -j 10
debug:
mkdir build && cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -H./ -B./build -G Ninja
cmake --build ./build --config Debug --target all -j 10
clear:
rm -r build