From c6e78d53e6cc93144a554abd78c9ee1cb735c7c0 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Mon, 25 Mar 2024 14:06:02 +0700 Subject: [PATCH] ci: modify `test-action-with-custom-tools` job to `test-action-with-custom-generator --- .github/workflows/test.yaml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index b7e949a..b07b8e2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -166,13 +166,9 @@ jobs: build-config: Debug tests-regex: test - test-action-with-custom-tools: - name: Test Action With Custom Tools - runs-on: ${{ matrix.os }}-latest - strategy: - fail-fast: false - matrix: - os: [windows, ubuntu, macos] + test-action-with-custom-generator: + name: Test Action With Custom Generator + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4.1.2 @@ -187,19 +183,13 @@ jobs: - name: Setup Ninja uses: seanmiddleditch/gha-setup-ninja@v4 - - name: Configure and Build Project + - name: Configure Project id: cmake-action uses: ./cmake-action with: source-dir: cmake-action/test generator: Ninja - c-compiler: clang - cxx-compiler: clang++ - options: CHECK_USING_CLANG=ON - build-args: --target test_c --target test_cpp + run-build: false - - name: Test Project - uses: threeal/ctest-action@v1.0.0 - with: - test-dir: ${{ steps.cmake-action.outputs.build-dir }} - tests-regex: test + - name: Build Project + run: ninja -C ${{ steps.cmake-action.outputs.build-dir }}