thiviyan/run-cmake

Run CMake with CMakePreset.json to configure, build and test C/C++ source code.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
cmakeListsTxtPathPath to CMakeLists.txt.no${{ github.workspace }}/CMakeLists.txt
configurePresetThe name of the configure preset. Required. This value is stored in the CONFIGURE_PRESET_NAME environment variable, and used by the default value of 'configurePresetCmdString' input.yes""
buildPresetThe name of the build preset. Optional. This value is stored in the BUILD_PRESET_NAME environment variable, and used by the default value of 'buildPresetCmdString' input.'no""
testPresetThe name of the test preset. Optional. This value is stored in the TEST_PRESET_NAME environment variable, and used by the default value of 'testPresetCmdString' input.'no""
useShellSpecify which shell to be used when launching commands. 'true' means the default shell is used. 'false' means no shell is used. It also can be an absolute with arguments of the shell to spawn commands with.notrue
logCollectionRegExpsSpecifies a semicolon separated list of regular expressions that are used to identify log file paths in the workflow output. A regular expression must have a single capturing group, that is a single pair of parenthesis such as 'See also (.+.log)'. When a match occurs, the content of the file is written into the workflow output for disclosing its content to the user. The default regular expressions are for CMake's and vcpkg's log files.no\s*"(.+CMakeOutput\.log)"\.\s*;\s*"(.+CMakeError\.log)"\.\s*;\s*(.+out\.log)\s*;\s+(.+err\.log)\s*;\s*(.+vcpkg.+\.log)\s*
configurePresetCmdStringThe CMake command format string to configure and generate project files.no[`--preset`, `$[env.CONFIGURE_PRESET_NAME]`]
buildPresetCmdStringThe CMake command format string to run the build.no[`--build`, `--preset`, `$[env.BUILD_PRESET_NAME]`]
testPresetCmdStringThe CTest command format string to run test.no[`--preset`, `$[env.TEST_PRESET_NAME]`]
runVcpkgEnvFormatStringSpecify the command line to dump the environment variables with the 'vcpkg env' command. This command is only used when setting up the environment for MSVC on Windows.no[`env`, `--bin`, `--include`, `--tools`, `--python`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `set`]

no outputs