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 build-config: Debug
tests-regex: test tests-regex: test
test-action-with-custom-tools: test-action-with-custom-generator:
name: Test Action With Custom Tools name: Test Action With Custom Generator
runs-on: ${{ matrix.os }}-latest runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4.1.2 uses: actions/checkout@v4.1.2
@ -187,19 +183,13 @@ jobs:
- name: Setup Ninja - name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@v4 uses: seanmiddleditch/gha-setup-ninja@v4
- name: Configure and Build Project - name: Configure Project
id: cmake-action id: cmake-action
uses: ./cmake-action uses: ./cmake-action
with: with:
source-dir: cmake-action/test source-dir: cmake-action/test
generator: Ninja generator: Ninja
c-compiler: clang run-build: false
cxx-compiler: clang++
options: CHECK_USING_CLANG=ON
build-args: --target test_c --target test_cpp
- name: Test Project - name: Build Project
uses: threeal/ctest-action@v1.0.0 run: ninja -C ${{ steps.cmake-action.outputs.build-dir }}
with:
test-dir: ${{ steps.cmake-action.outputs.build-dir }}
tests-regex: test