From 47e602f22e4280cadf5efa710067fc99b3b943c8 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sat, 14 Jan 2023 19:38:51 +0700 Subject: [PATCH] audit example usages title and contents --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 362e2fd..a6dfaf6 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ jobs: > Note: You can replace `@latest` with any version you like. -#### Using Different Directories +#### Specify the Source and the Build Directories ```yaml - name: Configure and build this project @@ -55,19 +55,21 @@ jobs: build-dir: submodules/build ``` -#### Build Custom Targets +#### Specify the Build Targets and Additional Options ```yaml - name: Configure and build this project uses: threeal/cmake-action@latest with: targets: hello_world_test fibonacci_test + c-flags: -Werror + cxx-flags: -Werror args: | + -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON - -DCMAKE_CXX_FLAGS='-Werror' ``` -#### Build Using Ninja and Clang +#### Using Ninja as the Generator and Clang as the Compiler ```yaml - name: Configure and build this project