fix: fix default build dir not relative to source dir (#269)

* test: fix get action inputs test when source dir specified

* fix: default build dir should relative to source dir

* ci: fix test directory location
This commit is contained in:
Alfi Maulana
2024-03-25 11:25:14 +07:00
committed by GitHub
parent 5c7d8af23f
commit 21ddda7def
4 changed files with 61 additions and 6 deletions

View File

@@ -71,7 +71,6 @@ jobs:
run: mv test/* .
- name: Configure and Build Project
id: cmake-action
uses: ./
- name: Test Project
@@ -135,6 +134,7 @@ jobs:
continue-on-error: true
uses: threeal/ctest-action@v1.0.0
with:
test-dir: ${{ steps.cmake-action.outputs.build-dir }}
tests-regex: hello_world
- name: Previous Step Should Failed
@@ -159,6 +159,7 @@ jobs:
sparse-checkout-cone-mode: false
- name: Configure and Build Project
id: cmake-action
uses: ./
with:
source-dir: test
@@ -170,6 +171,7 @@ jobs:
- name: Test Project
uses: threeal/ctest-action@v1.0.0
with:
test-dir: ${{ steps.cmake-action.outputs.build-dir }}
build-config: Debug
tests-regex: test
@@ -194,6 +196,7 @@ jobs:
uses: seanmiddleditch/gha-setup-ninja@v4
- name: Configure and Build Project
id: cmake-action
uses: ./
with:
source-dir: test
@@ -206,4 +209,5 @@ jobs:
- name: Test Project
uses: threeal/ctest-action@v1.0.0
with:
test-dir: ${{ steps.cmake-action.outputs.build-dir }}
tests-regex: test