mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 02:51:21 +00:00
audit example usages title and contents
This commit is contained in:
parent
b80acf2bfb
commit
47e602f22e
10
README.md
10
README.md
@ -45,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
> Note: You can replace `@latest` with any version you like.
|
> Note: You can replace `@latest` with any version you like.
|
||||||
|
|
||||||
#### Using Different Directories
|
#### Specify the Source and the Build Directories
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure and build this project
|
- name: Configure and build this project
|
||||||
@ -55,19 +55,21 @@ jobs:
|
|||||||
build-dir: submodules/build
|
build-dir: submodules/build
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build Custom Targets
|
#### Specify the Build Targets and Additional Options
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure and build this project
|
- name: Configure and build this project
|
||||||
uses: threeal/cmake-action@latest
|
uses: threeal/cmake-action@latest
|
||||||
with:
|
with:
|
||||||
targets: hello_world_test fibonacci_test
|
targets: hello_world_test fibonacci_test
|
||||||
|
c-flags: -Werror
|
||||||
|
cxx-flags: -Werror
|
||||||
args: |
|
args: |
|
||||||
|
-DCMAKE_BUILD_TYPE=Debug
|
||||||
-DBUILD_TESTING=ON
|
-DBUILD_TESTING=ON
|
||||||
-DCMAKE_CXX_FLAGS='-Werror'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build Using Ninja and Clang
|
#### Using Ninja as the Generator and Clang as the Compiler
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- name: Configure and build this project
|
- name: Configure and build this project
|
||||||
|
Loading…
Reference in New Issue
Block a user