diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 94f51a1..dc127e0 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -1,6 +1,7 @@ name: Build (Ubuntu) on: push: + pull_request: jobs: build-project: name: Build Project @@ -11,9 +12,14 @@ jobs: - name: Build Project uses: threeal/cmake-action@v2.1.0 + with: + options: | + CMAKE_BUILD_TYPE=Release + build-args: | + --config Release - name: Deploy Project uses: actions/upload-artifact@v4 with: - name: run-cppcheck + name: run-cppcheck-linux-x86_64 path: build/run-cppcheck diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 0eac242..3467b1e 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -1,6 +1,7 @@ name: Build (Windows) on: push: + pull_request: jobs: build-project: name: Build Project @@ -11,9 +12,14 @@ jobs: - name: Build Project uses: threeal/cmake-action@v2.1.0 + with: + options: | + CMAKE_BUILD_TYPE=Release + build-args: | + --config Release - name: Deploy Project uses: actions/upload-artifact@v4 with: name: run-cppcheck-windows - path: build/run-cppcheck.exe + path: build\Release\run-cppcheck.exe diff --git a/CMakeLists.txt b/CMakeLists.txt index 27bd739..5438ba5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,14 @@ -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.15) project(run-cppcheck) set(CMAKE_CXX_STANDARD 17) +set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded") + if (UNIX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -static-libgcc -static-libstdc++") -endif (UNIX) +endif () set(SOURCE_FILES main.cpp config.cpp)