mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 18:51:21 +00:00
ci: add test project step in other jobs
This commit is contained in:
parent
11c682e62f
commit
84007e69c6
15
.github/workflows/test.yaml
vendored
15
.github/workflows/test.yaml
vendored
@ -158,7 +158,7 @@ jobs:
|
|||||||
test
|
test
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure, Build, and Test Project
|
- name: Configure and Build Project
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
source-dir: test
|
source-dir: test
|
||||||
@ -167,6 +167,12 @@ jobs:
|
|||||||
options: CHECK_SURPASS_WARNING=ON
|
options: CHECK_SURPASS_WARNING=ON
|
||||||
build-args: --target test_c --target test_cpp
|
build-args: --target test_c --target test_cpp
|
||||||
|
|
||||||
|
- name: Test Project
|
||||||
|
uses: threeal/ctest-action@v1.0.0
|
||||||
|
with:
|
||||||
|
build-config: Debug
|
||||||
|
tests-regex: test
|
||||||
|
|
||||||
test-action-with-custom-tools:
|
test-action-with-custom-tools:
|
||||||
name: Test Action With Custom Tools
|
name: Test Action With Custom Tools
|
||||||
runs-on: ${{ matrix.os }}-latest
|
runs-on: ${{ matrix.os }}-latest
|
||||||
@ -187,7 +193,7 @@ jobs:
|
|||||||
- name: Setup Ninja
|
- name: Setup Ninja
|
||||||
uses: seanmiddleditch/gha-setup-ninja@v4
|
uses: seanmiddleditch/gha-setup-ninja@v4
|
||||||
|
|
||||||
- name: Configure, Build, and Test Project
|
- name: Configure and Build Project
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
source-dir: test
|
source-dir: test
|
||||||
@ -196,3 +202,8 @@ jobs:
|
|||||||
cxx-compiler: clang++
|
cxx-compiler: clang++
|
||||||
options: CHECK_USING_CLANG=ON
|
options: CHECK_USING_CLANG=ON
|
||||||
build-args: --target test_c --target test_cpp
|
build-args: --target test_c --target test_cpp
|
||||||
|
|
||||||
|
- name: Test Project
|
||||||
|
uses: threeal/ctest-action@v1.0.0
|
||||||
|
with:
|
||||||
|
tests-regex: test
|
||||||
|
Loading…
Reference in New Issue
Block a user