Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build (Ubuntu)
on:
push:
pull_request:
jobs:
build-project:
name: Build Project
Expand All @@ -11,9 +12,14 @@ jobs:

- name: Build Project
uses: threeal/[email protected]
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
8 changes: 7 additions & 1 deletion .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build (Windows)
on:
push:
pull_request:
jobs:
build-project:
name: Build Project
Expand All @@ -11,9 +12,14 @@ jobs:

- name: Build Project
uses: threeal/[email protected]
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
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand Down