Skip to content

Commit

Permalink
Merge pull request #12 from NikolasK-source/main
Browse files Browse the repository at this point in the history
update to v1.3.0
  • Loading branch information
NikolasK-source authored Apr 1, 2024
2 parents 3611fdd + 059c51c commit 2a71903
Show file tree
Hide file tree
Showing 29 changed files with 857 additions and 457 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AllowAllConstructorInitializersOnNextLine: 'true'
AllowAllParametersOfDeclarationOnNextLine: 'true'
AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Always
AllowShortLambdasOnASingleLine: All
AlwaysBreakAfterReturnType: None
Expand Down Expand Up @@ -48,4 +48,4 @@ SpacesInAngles: 'false'
SpacesInCStyleCastParentheses: 'false'
Standard: Cpp11
TabWidth: '4'
UseTab: Never
UseTab: Never
61 changes: 61 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Checks: 'bugprone-*,
cert-dcl21-cpp,
cert-dcl58-cpp,
cert-err34-c,
cert-err52-cpp,
cert-err60-cpp,
cert-flp30-c,
cert-msc50-cpp,
cert-msc51-cpp,
cert-str34-c,
cppcoreguidelines-*,
clang-analyzer-*,
google-default-arguments,
google-explicit-constructor,
google-runtime-operator,
hicpp-exception-baseclass,
hicpp-multiway-paths-covered,
misc-misplaced-const,
misc-new-delete-overloads,
misc-no-recursion,
misc-non-copyable-objects,
misc-throw-by-value-catch-by-reference,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
modernize-*,
mpi-buffer-deref,
mpi-type-mismatch,
openmp-use-default-none,
portability-*,
performance-*,
readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-container-size-empty,
readability-convert-member-functions-to-static,
readability-delete-null-pointer,
readability-deleted-default,
readability-inconsistent-declaration-parameter-name,
readability-make-member-function-const,
readability-misleading-indentation,
readability-misplaced-array-index,
readability-non-const-parameter,
readability-redundant-control-flow,
readability-redundant-declaration,
readability-redundant-function-ptr-dereference,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-redundant-string-init,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-uniqueptr-delete-release,
readability-use-anyofallof
-modernize-use-trailing-return-type
-bugprone-exception-escape'
WarningsAsErrors: '*,
-modernize-*,
-readability-*
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-pro-type-vararg'
HeaderFilterRegex: ''
57 changes: 57 additions & 0 deletions .clang-tidy-noerrors
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
Checks: 'bugprone-*,
cert-dcl21-cpp,
cert-dcl58-cpp,
cert-err34-c,
cert-err52-cpp,
cert-err60-cpp,
cert-flp30-c,
cert-msc50-cpp,
cert-msc51-cpp,
cert-str34-c,
cppcoreguidelines-*,
clang-analyzer-*,
google-default-arguments,
google-explicit-constructor,
google-runtime-operator,
hicpp-exception-baseclass,
hicpp-multiway-paths-covered,
misc-misplaced-const,
misc-new-delete-overloads,
misc-no-recursion,
misc-non-copyable-objects,
misc-throw-by-value-catch-by-reference,
misc-unconventional-assign-operator,
misc-uniqueptr-reset-release,
modernize-*,
mpi-buffer-deref,
mpi-type-mismatch,
openmp-use-default-none,
portability-*,
performance-*,
readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-container-size-empty,
readability-convert-member-functions-to-static,
readability-delete-null-pointer,
readability-deleted-default,
readability-inconsistent-declaration-parameter-name,
readability-make-member-function-const,
readability-misleading-indentation,
readability-misplaced-array-index,
readability-non-const-parameter,
readability-redundant-control-flow,
readability-redundant-declaration,
readability-redundant-function-ptr-dereference,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-redundant-string-init,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-uniqueptr-delete-release,
readability-use-anyofallof
-modernize-use-trailing-return-type
-bugprone-exception-escape'
WarningsAsErrors: ''
HeaderFilterRegex: ''
36 changes: 31 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,39 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Init submodules
run: git submodule init
- name: create tmp dir
run: mkdir tmp

- name: Update submodules
run: git submodule update
- name: update
run: |
sudo apt update
sudo apt upgrade -y
- name: install cxxopts
run: |
sudo apt install libcxxopts-dev
- name: install cxxshm
run: |
git clone https://github.com/NikolasK-source/cxxshm.git tmp/cxxshm
cd tmp/cxxshm
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
cmake --build build
sudo cmake --install build
cd -
- name: install cxxsemaphore
run: |
git clone https://github.com/NikolasK-source/cxxsemaphore.git tmp/cxxsemaphore
cd tmp/cxxsemaphore
git checkout $(git tag | grep -P '^v\d+\.\d+\.\d+$' | sort | tail -1)
cmake -B build . -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF -DCLANG_TIDY=OFF
cmake --build build
sudo cmake --install build
cd -
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches: [ "main", "development" ]
pull_request:
on: [push, pull_request]
name: Flatpak_test
jobs:
flatpak:
Expand All @@ -11,17 +8,11 @@ jobs:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-21.08
options: --privileged
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Git config
run: git config --global --add safe.directory /__w/dump_shm/dump_shm

- name: Init submodules
run: git submodule init

- name: Update submodules
run: git submodule update

- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
name: "Build"
with:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/flatpak_release.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# general
build*
docs/*
docs_doxy

!docs/index.md
!docs/_config.yml
Expand Down Expand Up @@ -465,3 +466,4 @@ modules.order
Module.symvers
Mkfile.old
dkms.conf
src/generated/version_info*
9 changes: 0 additions & 9 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
[submodule "libs/cxxopts"]
path = libs/cxxopts
url = https://github.com/jarro2783/cxxopts.git
[submodule "libs/cxxsemaphore"]
path = libs/cxxsemaphore
url = https://github.com/NikolasK-source/cxxsemaphore.git
[submodule "libs/cxxshm"]
path = libs/cxxshm
url = https://github.com/NikolasK-source/cxxshm.git
Loading

0 comments on commit 2a71903

Please sign in to comment.