add support to run hello world target as a CMake test

This commit is contained in:
Alfi Maulana
2023-01-22 12:32:23 +07:00
parent d59afd2844
commit 633b25cfad
2 changed files with 4 additions and 6 deletions

View File

@@ -32,9 +32,7 @@ jobs:
with:
source-dir: test
build-dir: output
- name: Run the build result
run: output/hello_world
run_test: true
- name: Check if the default build directory does not exist
run: test ! -d build && test ! -d test/build
@@ -98,6 +96,4 @@ jobs:
with:
source-dir: test
generator: Ninja
- name: Run the build result
run: test/build/hello_world
run-test: true