lucteo/action-cxx-toolkit
Build C++ projects (make, cmake, conan) and runs various checks on it (warnings, install, test, clang-format, clang-tidy, sanitize, cppcheck, iwyu, coverage)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| checks | The preset to be used for building and testing the software. Can be one or multiple items (separated by comma): - build -- just build the software - warnings -- fails if there are some warnings while building - install -- check that the software can be installed - test -- check that the software can run its tests - clang-format -- check that clang-format doesn't change the files - clang-tidy -- static analysis by clang-tidy - sanitize=* -- uses sanitizer when running the tests; can be used with multiple sanitiers - cppcheck -- runs cppcheck to perform static code analyisis of the source code - iwyu -- checks that the files don't include headers that they don't need - coverage=(codecov, lcov) -- checks the coverage of the tests run; can upload data to codecov.io, or generate a coverage report with lcov | — | "" |
| dependencies | Ubuntu packges to install before building the software | — | "" |
| directory | The directory to start building from (current working directory) | — | "" |
| conanfiledir | The directory to search for conanfile.txt or conanfile.py | — | "" |
| makefiledir | The directory to search for CMakeList.txt or Makefile | — | "" |
| builddir | The directory where to perform the build | — | "" |
| installdir | The directory where to install the software | — | "" |
| cc | The C compiler to use; based on it the C++ compiler is also deduced | — | gcc |
| cflags | The CFLAGS to be passed to the compilation | — | "" |
| cxxflags | The CXXFLAGS to be passed to the compilation | — | "" |
| ignore_conan | Don't run conan, even if a conanfile.{py,txt} is present in the source tree | — | false |
| ignore_cmake | Don't run cmake, even if a CMakeList.txt is present in the source tree | — | false |
| ignore_make | Don't run make, even if a Makefile is present in the source tree | — | false |
| conanflags | The flags to be passed to conan (if using conan) | — | "" |
| cmakeflags | The flags to be passed to cmake (if using cmake) | — | "" |
| ctestflags | The flags to be passed to ctest (if using cmake/ctest) | — | "" |
| makeflags | The flags to be passed to make (both for plain make or for build part of cmake) | — | "" |
| iwyuflags | Extra flags to be passed to iwyu | — | "" |
| cppcheckflags | Extra flags to be passed to cppcheck | — | "" |
| clangtidyflags | Extra flags to be passed to clang-tidy | — | "" |
| clangformatdirs | The directories (relative to build dir) where to run clang-format | — | "" |
| prebuild_command | Command to be run before building starts | — | "" |
| build_command | Command to be run to build the software (conan, cmake, make) | — | "" |
| postbuild_command | Command to be run to after the software is built | — | "" |
| test_command | Command to be run to test the built software | — | "" |
Outputs
no outputs