You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -24,20 +24,21 @@ For more information, refer to [action.yml](./action.yml) and the [GitHub Action
24
24
| --- | --- | --- |
25
25
|`source-dir`| Path | The source directory of the CMake project. It defaults to the current directory. |
26
26
|`build-dir`| Path | The build directory of the CMake project. It defaults to the `build` directory inside the source directory. |
27
-
|`generator`| String | The build system generator for the CMake project. |
28
-
|`c-compiler`| String | The preferred executable for compiling C language files. |
29
-
|`cxx-compiler`| String | The preferred executable for compiling C++ language files. |
30
-
|`c-flags`| Multiple strings | Additional flags to pass when compiling C language files. |
31
-
|`cxx-flags`| Multiple strings | Additional flags to pass when compiling C++ language files. |
27
+
|`generator`| String | The build system generator for the CMake project. It appends the CMake configuration arguments with `-G [val]`. |
28
+
|`c-compiler`| String | The preferred executable for compiling C language files. It appends the CMake configuration arguments with `-D CMAKE_C_COMPILER=[val]`. |
29
+
|`cxx-compiler`| String | The preferred executable for compiling C++ language files. It appends the CMake configuration arguments with `-D CMAKE_CXX_COMPILER=[val]`. |
30
+
|`c-flags`| Multiple strings | Additional flags to pass when compiling C language files. It appends the CMake configuration arguments with `-D CMAKE_C_FLAGS=[vals]`. |
31
+
|`cxx-flags`| Multiple strings | Additional flags to pass when compiling C++ language files. It appends the CMake configuration arguments with `-D CMAKE_CXX_FLAGS=[vals]`. |
32
+
|`options`| Multiple strings | Additional options to pass during the CMake configuration. It appends the CMake configuration arguments with each of `-D [val]`. |
32
33
|`args`| Multiple strings | Additional arguments to pass during the CMake configuration. |
33
-
|`run-build`|`true` or `false`| If enabled, it builds the project using [CTest](https://cmake.org/cmake/help/latest/manual/ctest.1.html). It defaults to `false`. |
34
+
|`run-build`|`true` or `false`| If enabled, it builds the project using CMake. It defaults to `false`. |
34
35
|`build-args`| Multiple strings | Additional arguments to pass during the CMake build. |
35
36
|`run-test`|`true` or `false`| If enabled, it runs testing using [CTest](https://cmake.org/cmake/help/latest/manual/ctest.1.html). It defaults to `false`. |
36
37
|`test-args`| Multiple strings | Additional arguments to pass during the CTest run. |
37
38
38
-
> Note: Multiple strings mean that the input can be specified with more than one value. Separate each value with a space or a new line.
39
+
> **Note**: Multiple strings mean that the input can be specified with more than one value. Separate each value with a space or a new line.
39
40
40
-
> Note: All inputs are optional.
41
+
> **Note**: All inputs are optional.
41
42
42
43
### Examples
43
44
@@ -50,10 +51,10 @@ jobs:
50
51
runs-on: ubuntu-latest
51
52
steps:
52
53
- name: Checkout the repository
53
-
uses: actions/checkout@v3.3.0
54
+
uses: actions/checkout@v3.5.3
54
55
55
56
- name: Configure the project
56
-
uses: threeal/cmake-action@latest
57
+
uses: threeal/cmake-action@main
57
58
58
59
- name: Build the project
59
60
runs: cmake --build build
@@ -62,13 +63,13 @@ jobs:
62
63
runs: ctest --test-dir build
63
64
```
64
65
65
-
> Note: You can replace `@latest` with any version you prefer. See [this](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsuses).
66
+
> **Note**: You can replace `@main` with any version you prefer. See [this](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsuses).
0 commit comments