mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-22 11:31:21 +00:00
add workflow job to test this action using additional arguments
This commit is contained in:
parent
1410df2e18
commit
f90a3ab334
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -52,3 +52,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Check if default build directory is not exist
|
- name: Check if default build directory is not exist
|
||||||
run: test ! -d build
|
run: test ! -d build
|
||||||
|
|
||||||
|
use-action-with-other-args:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
|
- name: Use this action with build txt enabled
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
source-dir: test
|
||||||
|
args: -D BUILD_TXT=ON
|
||||||
|
|
||||||
|
- name: Run build result
|
||||||
|
run: build/hello_world
|
||||||
|
|
||||||
|
- name: Check if the txt result exist
|
||||||
|
run: cat build/hello_world.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user