ci: modify test-action-with-custom-tools job to `test-action-with-custom-generator

This commit is contained in:
Alfi Maulana 2024-03-25 14:06:02 +07:00
parent d4c133a7dc
commit c6e78d53e6
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -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 }}