thiviyan/run-cmake
Run CMake with CMakePreset.json to configure, build and test C/C++ source code.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| cmakeListsTxtPath | Path to CMakeLists.txt. | no | ${{ github.workspace }}/CMakeLists.txt |
| configurePreset | The 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 | "" |
| buildPreset | The 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 | "" |
| testPreset | The 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 | "" |
| useShell | Specify 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. | no | true |
| logCollectionRegExps | Specifies 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* |
| configurePresetCmdString | The CMake command format string to configure and generate project files. | no | [`--preset`, `$[env.CONFIGURE_PRESET_NAME]`] |
| buildPresetCmdString | The CMake command format string to run the build. | no | [`--build`, `--preset`, `$[env.BUILD_PRESET_NAME]`] |
| testPresetCmdString | The CTest command format string to run test. | no | [`--preset`, `$[env.TEST_PRESET_NAME]`] |
| runVcpkgEnvFormatString | Specify 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`] |
Outputs
no outputs