add a new run-test input option for running tests using CTest

This commit is contained in:
Alfi Maulana
2023-01-22 11:53:07 +07:00
parent cf153dc8e3
commit d59afd2844
2 changed files with 15 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ For more information, see [action.yml](./action.yml) and [GitHub Actions guide](
| `source-dir` | Path | Source directory of the CMake project. Defaults to current directory. |
| `build-dir` | Path | Build directory of the CMake project. Defaults to `build` directory in current directory. |
| `targets` | Multiple strings | List of build targets. |
| `run-test` | `true` or `false` | If enabled, run testing using [CTest](https://cmake.org/cmake/help/latest/manual/ctest.1.html). Defaults to `false`. |
| `generator` | String | Build system generator of the CMake project. |
| `c-compiler` | String | Preferred executable for compiling C language files. |
| `cxx-compiler` | String | Preferred executable for compiling C++ language files. |