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
103 changes: 51 additions & 52 deletions .github/workflows/ci-cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- name: configure system
run: |
sudo apt-get update
sudo apt-get install -y make ninja-build
- name: configure system
run: |
sudo apt-get update
sudo apt-get install -y make ninja-build

- uses: actions/checkout@v4
with:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: cache cppcheck
id: cache-cppcheck
uses: actions/cache@v4
with:
path: _cppcheck
key: ${{ runner.os }}-cppcheck-2.19.0
restore-keys: ${{ runner.os }}-cppcheck-2.19.0
- name: cache cppcheck
id: cache-cppcheck
uses: actions/cache@v4
with:
path: _cppcheck
key: ${{ runner.os }}-cppcheck-2.19.0
restore-keys: ${{ runner.os }}-cppcheck-2.19.0

- if: ${{ steps.cache-cppcheck.outputs.cache-hit != 'true' }}
name: download and build cppcheck
run: |
- if: ${{ steps.cache-cppcheck.outputs.cache-hit != 'true' }}
name: download and build cppcheck
run: |
mkdir -p _cppcheck
wget -O _cppcheck/cppcheck.tar.gz https://github.com/danmar/cppcheck/archive/refs/tags/2.19.0.tar.gz
cd _cppcheck
Expand All @@ -45,43 +45,42 @@ jobs:
cd ../..
_cppcheck/cppcheck-2.19.0/cppcheck --version

# we need configure cmake to get the compile_commands.json file
- name: cmake configure
run: >
cmake -B build
-G Ninja
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_BUILD_TYPE=Release
-C ".github/workflows/linux_initial_cache.txt"
-S projects/cmake
# we need configure cmake to get the compile_commands.json file
- name: cmake configure
run: >
cmake -B build
-G Ninja
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_BUILD_TYPE=Release
-C ".github/workflows/linux_initial_cache.txt"
-S projects/cmake

- name: cache cppcheck_build_dir
id: cache-cppcheck_build_dir
uses: actions/cache@v4
with:
path: _cppcheck_build_dir
key: ${{ runner.os }}-cppcheck_build_dir
restore-keys: ${{ runner.os }}-cppcheck_build_dir
- name: cache cppcheck_build_dir
id: cache-cppcheck_build_dir
uses: actions/cache@v4
with:
path: _cppcheck_build_dir
key: ${{ runner.os }}-cppcheck_build_dir
restore-keys: ${{ runner.os }}-cppcheck_build_dir

# _cppcheck_build_dir is required to increase cppcheck check speed
- if: ${{ steps.cache-cppcheck_build_dir.outputs.cache-hit != 'true' }}
name: cppcheck_build_dir
run: mkdir -p _cppcheck_build_dir
# _cppcheck_build_dir is required to increase cppcheck check speed
- if: ${{ steps.cache-cppcheck_build_dir.outputs.cache-hit != 'true' }}
name: cppcheck_build_dir
run: mkdir -p _cppcheck_build_dir

- name: cppcheck
run: >
./_cppcheck/cppcheck-2.19.0/cppcheck --project=build/compile_commands.json
-D__GNUC__=4
--safety
--error-exitcode=-1
-i "third_party/*"
--enable=warning,performance,portability,missingInclude
--suppressions-list=./cppcheck_suppressions.txt
--inline-suppr
--quiet
-j $(nproc)
--cppcheck-build-dir=./_cppcheck_build_dir
--checkers-report=./checkers.txt
- name: cppcheck
run: >
./_cppcheck/cppcheck-2.19.0/cppcheck --project=build/compile_commands.json
-D__GNUC__=4
--safety
--error-exitcode=-1
--enable=warning,performance,portability,missingInclude
--suppressions-list=./cppcheck_suppressions.txt
--inline-suppr
--quiet
-j $(nproc)
--cppcheck-build-dir=./_cppcheck_build_dir
--checkers-report=./checkers.txt

- name: print checkers report
run: cat checkers.txt
- name: print checkers report
run: cat checkers.txt
66 changes: 0 additions & 66 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,66 +0,0 @@
[submodule "third_party/base-n"]
path = third_party/base-n
url = https://github.com/azawadzki/base-n.git
branch = master
ignore = dirty

[submodule "third_party/libbcrypt"]
path = third_party/libbcrypt
url = https://github.com/rg3/libbcrypt.git
branch = master
ignore = dirty

[submodule "third_party/libhydrogen"]
path = third_party/libhydrogen
url = https://github.com/jedisct1/libhydrogen.git
branch = master
ignore = dirty

[submodule "third_party/libsodium"]
path = third_party/libsodium
url = https://github.com/jedisct1/libsodium.git
branch = master
ignore = dirty

[submodule "third_party/Unity"]
path = third_party/Unity
url = https://github.com/ThrowTheSwitch/Unity.git
branch = master
ignore = dirty

[submodule "third_party/c-ares"]
path = third_party/c-ares
url = https://github.com/c-ares/c-ares.git
branch = main
ignore = dirty

[submodule "third_party/date"]
path = third_party/date
url = https://github.com/HowardHinnant/date.git
branch = master
ignore = dirty

[submodule "third_party/ini.h"]
path = third_party/ini.h
url = https://github.com/giosali/ini.h
branch = main
ignore = dirty

[submodule "third_party/etl"]
path = third_party/etl
url = https://github.com/ETLCPP/etl.git
branch = master
ignore = dirty

[submodule "third_party/aethernet-numeric"]
path = third_party/aethernet-numeric
url = https://github.com/aethernetio/aethernet-numeric.git
branch = main
[submodule "third_party/gcem"]
path = third_party/gcem
url = https://github.com/aethernetio/gcem.git
branch = master
[submodule "third_party/stdexec"]
path = third_party/stdexec
url = https://github.com/aethernetio/stdexec.git
branch = main
Loading
Loading