From 735354b97a38dd7f2077254ccf5274cade581d1e Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Fri, 30 Jun 2023 14:13:01 +0700 Subject: [PATCH] docs: adjust and fix examples --- README.md | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 2aaffc0..2ee3227 100644 --- a/README.md +++ b/README.md @@ -65,31 +65,30 @@ jobs: > **Note**: You can replace [`v1.2.0`](https://github.com/threeal/cmake-action/releases/tag/v1.2.0) with any version you prefer. See [this](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsuses). -#### Specify the Source and Build Directories +#### Configure, Build, and Test in the Same Step ```yaml -- name: Configure the project +- name: Configure, build, and test the project uses: threeal/cmake-action@v1.2.0 with: - source-dir: submodules - build-dir: submodules/out + run-build: true + run-test: true ``` -#### Configure, Build, and Test in the Same Step +#### Specify the Source and Build Directories ```yaml -- name: Configure, build, and test the project +- name: Configure the project uses: threeal/cmake-action@v1.2.0 with: - options: BUILD_TESTING=ON - run-build: true - run-test: true + source-dir: submodules + build-dir: submodules/out ``` #### Using Ninja as the Generator and Clang as the Compiler ```yaml -- name: Configure and build the project +- name: Configure the project uses: threeal/cmake-action@v1.2.0 with: generator: Ninja