Skip to content
Open
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
15 changes: 15 additions & 0 deletions .github/workflows/CI-unixish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,21 @@ jobs:
# compile with verification and ast matchers
make -j$(nproc) -s CPPFLAGS="-DCHECK_INTERNAL" CXXOPTS="-g -O2 -w -DHAVE_BOOST" MATCHCOMPILER=yes VERIFY=1

- name: Self check (output)
run: |
wget https://github.com/danmar/simplecpp/archive/refs/tags/1.5.1.tar.gz
tar xvf 1.5.1.tar.gz
# TODO: should include --verbose but identifiers in output differ on each run
./cppcheck -q --std=c++11 --template=selfcheck -D__GNUC__ --library=gnu --check-level=exhaustive --debug --debug-template simplecpp-1.5.1/simplecpp.cpp > selfcheck.res
diff -u selfcheck.exp selfcheck.res

# upload in failure case only. being able to just download the file, makes it easier to update the files in case of bigger changes
- uses: actions/upload-artifact@v4
if: failure()
with:
name: Actual output
path: ./selfcheck.res

- name: CMake
run: |
cmake -S . -B cmake.output -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DBUILD_TRIAGE=On -DUSE_MATCHCOMPILER=Verify -DENABLE_CHECK_INTERNAL=On -DCPPCHK_GLIBCXX_DEBUG=Off -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DDISABLE_DMAKE=On
Expand Down
Loading