From 957a54a874d52a05eef8d99c1569f6797ca3f66a Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Tue, 15 Oct 2024 22:09:51 +0700 Subject: [PATCH] ci: use CMake presets in workflows Signed-off-by: Alfi Maulana --- .github/workflows/build.yaml | 4 +--- .github/workflows/test.yaml | 9 ++------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 34a14f0..c180e24 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,9 +13,7 @@ jobs: uses: actions/checkout@v4.2.1 - name: Configure Project - uses: threeal/cmake-action@v2.0.0 - with: - run-build: false + run: cmake --preset default - name: Install Project run: cmake --install build --prefix install diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8c2d8d6..71514d9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,12 +13,7 @@ jobs: uses: actions/checkout@v4.2.1 - name: Configure Project - uses: threeal/cmake-action@v2.0.0 - with: - options: ASSERTION_ENABLE_TESTS=ON - run-build: false + run: cmake --preset development - name: Test Project - uses: threeal/ctest-action@v1.1.0 - with: - verbose: true + run: ctest --preset development