mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-12 12:11:20 +00:00
ci: modify test-action-with-custom-tools
job to `test-action-with-custom-generator
This commit is contained in:
parent
d4c133a7dc
commit
c6e78d53e6
24
.github/workflows/test.yaml
vendored
24
.github/workflows/test.yaml
vendored
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user