-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
7,304 additions
and
7,244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
BasedOnStyle: Google | ||
ColumnLimit: 120 | ||
IndentWidth: 4 | ||
TabWidth: 4 | ||
UseTab: Always | ||
ReflowComments: false | ||
AccessModifierOffset: -4 | ||
IncludeBlocks: Preserve | ||
BreakBeforeBraces: Allman | ||
BreakBeforeTernaryOperators: true | ||
BreakBeforeBinaryOperators: NonAssignment | ||
SpaceInEmptyBlock: true | ||
SpacesBeforeTrailingComments: 1 | ||
SpaceAfterTemplateKeyword: true | ||
IndentAccessModifiers: false | ||
IndentRequiresClause: false | ||
IndentCaseLabels: false | ||
IndentPPDirectives: BeforeHash | ||
InsertNewlineAtEOF: true | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
PackConstructorInitializers: BinPack | ||
NamespaceIndentation: All | ||
Cpp11BracedListStyle: false | ||
FixNamespaceComments: false | ||
AlignAfterOpenBracket: DontAlign | ||
AlignOperands: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortFunctionsOnASingleLine: Empty | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowAllArgumentsOnNextLine: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Checks: > | ||
-* | ||
clang-analyzer-* | ||
WarningsAsErrors: "*" | ||
FormatStyle: file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = tab | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
name: Linux | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: 4a600e9fea71bd7872080cbb716797e04d30e6d3 | ||
|
||
- name: Build | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=".vcpkg/linux.cmake" -DBUILD_TESTING=True | ||
cmake --build . --config ${{env.BUILD_TYPE}} | ||
- name: Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
|
||
- name: Tests | ||
run: | | ||
ctest -C ${{env.BUILD_TYPE}} | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: 4a600e9fea71bd7872080cbb716797e04d30e6d3 | ||
|
||
- name: Build | ||
run: | | ||
mkdir build && cd build | ||
cmake .. --preset linux -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=True | ||
cmake --build . --config ${{env.BUILD_TYPE}} | ||
- name: Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
|
||
tests: | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
|
||
- name: Tests | ||
run: | | ||
ctest -C ${{env.BUILD_TYPE}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,67 @@ | ||
name: Windows | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: 4a600e9fea71bd7872080cbb716797e04d30e6d3 | ||
- name: Vcpkg | ||
uses: lukka/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: 4a600e9fea71bd7872080cbb716797e04d30e6d3 | ||
|
||
- name: Build | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=".vcpkg/windows.cmake" -DBUILD_TESTING=True | ||
cmake --build . --config ${{env.BUILD_TYPE}} | ||
- name: Build | ||
run: | | ||
mkdir build && cd build | ||
cmake .. --preset windows -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_TESTING=True | ||
cmake --build . --config ${{env.BUILD_TYPE}} | ||
- name: Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
- name: Artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
|
||
tests: | ||
runs-on: windows-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
tests: | ||
runs-on: windows-latest | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: OpenCppCoverage | ||
shell: bash | ||
run: | | ||
choco install -y opencppcoverage | ||
echo "C:\Program Files\OpenCppCoverage" >> $GITHUB_PATH | ||
- name: OpenCppCoverage | ||
shell: bash | ||
run: | | ||
choco install -y opencppcoverage | ||
echo "C:\Program Files\OpenCppCoverage" >> $GITHUB_PATH | ||
- name: Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
- name: Artifact | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: build-artifact | ||
path: build | ||
|
||
- name: Tests | ||
run: | | ||
opencppcoverage --quiet --export_type=cobertura:opencppcoverageCoverage.xml --working_dir build --sources src -- build/Release/CoD4DM1.Tests.exe | ||
- name: Tests | ||
run: | | ||
opencppcoverage --quiet --export_type=cobertura:opencppcoverageCoverage.xml --working_dir build --sources src -- build/Release/CoD4DM1.Tests.exe | ||
- name: CodeCov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./opencppcoverageCoverage.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
verbose: true | ||
- name: CodeCov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: ./opencppcoverageCoverage.xml | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: true | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"version": 7, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 27, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "windows", | ||
"generator": "Visual Studio 17 2022", | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": ".vcpkg/windows.cmake" | ||
} | ||
}, | ||
{ | ||
"name": "windows-mingw", | ||
"generator": "MinGW Makefiles", | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": ".vcpkg/windows.cmake" | ||
} | ||
}, | ||
{ | ||
"name": "linux", | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": ".vcpkg/linux.cmake" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
add_custom_target(clang-tidy | ||
COMMAND find . -type f \( -name '*.cpp' -o -name '*.hpp' \) -not -path './build/*' -exec clang-tidy --config-file=.clang-tidy {} + | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
|
||
add_custom_target(clang-format | ||
COMMAND find . -type f \( -name '*.cpp' -o -name '*.hpp' \) -not -path './build/*' -exec clang-format -style=file -i --verbose {} + | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) | ||
|
||
set_target_properties(clang-tidy PROPERTIES FOLDER Clang) | ||
set_target_properties(clang-format PROPERTIES FOLDER Clang) |
Oops, something went wrong.