feat: replace targets input with the more general build-args input

This commit is contained in:
Alfi Maulana
2023-06-29 19:32:21 +07:00
parent 3430da8dad
commit f1910e1a56
3 changed files with 23 additions and 33 deletions

View File

@@ -56,11 +56,11 @@ jobs:
uses: ./
with:
source-dir: test
targets: test_c test_cpp
c-flags: ${{ matrix.compiler == 'msvc' && '/w /WX-' || '-Wno-unused-variable' }}
cxx-flags: ${{ matrix.compiler == 'msvc' && '/w /WX-' || '-Wno-unused-variable' }}
args: -D CHECK_SURPASS_WARNING=ON
run-build: true
build-args: --target test_c --target test_cpp
run-test: true
test-args: -R test ${{ matrix.compiler == 'msvc' && '-C Debug' || '' }}
@@ -77,12 +77,12 @@ jobs:
uses: ./
with:
source-dir: test
targets: test_c test_cpp
generator: Ninja
c-compiler: clang
cxx-compiler: clang++
args: -D CHECK_USING_CLANG=ON
run-build: true
build-args: --target test_c --target test_cpp
run-test: true
test-args: -R test