mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-09 18:51:21 +00:00
ci: test if project built by running it instead
This commit is contained in:
parent
84a09a843d
commit
2e16a1b0a6
17
.github/workflows/test.yaml
vendored
17
.github/workflows/test.yaml
vendored
@ -73,14 +73,11 @@ jobs:
|
|||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure and Build Project
|
- name: Configure and Build Project
|
||||||
|
id: cmake-action
|
||||||
uses: ./cmake-action
|
uses: ./cmake-action
|
||||||
with:
|
|
||||||
options: BUILD_TESTING=ON
|
|
||||||
|
|
||||||
- name: Test Project
|
- name: Run Project
|
||||||
uses: threeal/ctest-action@v1.0.0
|
run: ${{ steps.cmake-action.outputs.build-dir }}/${{ matrix.os == 'windows' && 'Debug/generate_sequence.exe' || 'generate_sequence' }} 5
|
||||||
with:
|
|
||||||
build-config: Debug
|
|
||||||
|
|
||||||
test-action-with-specified-dirs:
|
test-action-with-specified-dirs:
|
||||||
name: Test Action With Specified Directories
|
name: Test Action With Specified Directories
|
||||||
@ -102,16 +99,14 @@ jobs:
|
|||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
||||||
- name: Configure and Build Project
|
- name: Configure and Build Project
|
||||||
|
id: cmake-action
|
||||||
uses: ./cmake-action
|
uses: ./cmake-action
|
||||||
with:
|
with:
|
||||||
source-dir: project
|
source-dir: project
|
||||||
build-dir: output
|
build-dir: output
|
||||||
options: BUILD_TESTING=ON
|
|
||||||
|
|
||||||
- name: Test Project
|
- name: Run Project
|
||||||
uses: threeal/ctest-action@v1.0.0
|
run: output/generate_sequence 5
|
||||||
with:
|
|
||||||
test-dir: output
|
|
||||||
|
|
||||||
test-action-without-run-build:
|
test-action-without-run-build:
|
||||||
name: Test Action Without Run Build
|
name: Test Action Without Run Build
|
||||||
|
Loading…
Reference in New Issue
Block a user