From 184207793d82eed47b40b2a6f35d21aa995b94be Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 26 Nov 2021 21:14:25 +0100 Subject: [PATCH] added a makefile and edited the codeql --- .github/workflows/codeql-analysis.yml | 6 +++--- .gitignore | 1 - Makefile | 12 ++++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 Makefile diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 94a9c23..678a3a0 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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 diff --git a/.gitignore b/.gitignore index fa04b6b..abd0475 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ CMakeCache.txt CMakeFiles CMakeScripts Testing -Makefile cmake_install.cmake install_manifest.txt compile_commands.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f2e1451 --- /dev/null +++ b/Makefile @@ -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