-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
40 changed files
with
5,719 additions
and
5,673 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,71 +1,71 @@ | ||
name: Linux | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
build: | ||
runs-on: ubuntu-18.04 | ||
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: NASM | ||
uses: ilammy/setup-nasm@v1 | ||
- name: NASM | ||
uses: ilammy/setup-nasm@v1 | ||
|
||
- name: Dependencies | ||
run: | | ||
sudo apt-get install g++-multilib gcc-multilib | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386 | ||
- name: Dependencies | ||
run: | | ||
sudo apt-get install g++-multilib gcc-multilib | ||
sudo dpkg --add-architecture i386 | ||
sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386 | ||
- name: GCC | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: 9 | ||
platform: x86 | ||
- name: GCC | ||
uses: egor-tensin/setup-gcc@v1 | ||
with: | ||
version: 9 | ||
platform: x86 | ||
|
||
- name: Plugin Interface | ||
run: | | ||
cd .. | ||
curl -o plugin.zip https://iswenzz.com/github/gsclib/plugin.zip | ||
7z x plugin.zip | ||
- name: Plugin Interface | ||
run: | | ||
cd .. | ||
curl -o plugin.zip https://iswenzz.com/github/gsclib/plugin.zip | ||
7z x plugin.zip | ||
- name: Build | ||
run: | | ||
mkdir build && cd build | ||
cmake .. -DCMAKE_TOOLCHAIN_FILE=".vcpkg/linux.cmake" -DBUILD_TESTING=True | ||
cmake --build . | ||
- name: Build | ||
run: | | ||
mkdir build && cd build | ||
cmake .. --preset linux -DBUILD_TESTING=True | ||
cmake --build . | ||
- 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: ubuntu-18.04 | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
tests: | ||
runs-on: ubuntu-18.04 | ||
needs: [build] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- 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 | ||
working-directory: build | ||
run: | | ||
chmod +x bin/gsclib.Tests | ||
ctest -C Release | ||
- name: Tests | ||
working-directory: build | ||
run: | | ||
chmod +x bin/gsclib.Tests | ||
ctest -C Release |
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,23 @@ | ||
{ | ||
"version": 7, | ||
"cmakeMinimumRequired": { | ||
"major": 3, | ||
"minor": 27, | ||
"patch": 0 | ||
}, | ||
"configurePresets": [ | ||
{ | ||
"name": "windows", | ||
"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 '*.c' -o -name '*.h' \) -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 '*.c' -o -name '*.h' \) -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) |
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,17 +1,17 @@ | ||
#include <greatest.h> | ||
GREATEST_MAIN_DEFS(); | ||
|
||
extern SUITE(Suite_data_regex); | ||
extern SUITE(Suite_data_zip); | ||
extern SUITE(Suite_utils_vsnprintf); | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
GREATEST_MAIN_BEGIN(); | ||
|
||
RUN_SUITE(Suite_data_regex); | ||
RUN_SUITE(Suite_data_zip); | ||
RUN_SUITE(Suite_utils_vsnprintf); | ||
|
||
GREATEST_MAIN_END(); | ||
} | ||
#include <greatest.h> | ||
GREATEST_MAIN_DEFS(); | ||
|
||
extern SUITE(Suite_data_regex); | ||
extern SUITE(Suite_data_zip); | ||
extern SUITE(Suite_utils_vsnprintf); | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
GREATEST_MAIN_BEGIN(); | ||
|
||
RUN_SUITE(Suite_data_regex); | ||
RUN_SUITE(Suite_data_zip); | ||
RUN_SUITE(Suite_utils_vsnprintf); | ||
|
||
GREATEST_MAIN_END(); | ||
} |
Oops, something went wrong.