use test_c and test_cpp with check for using clang in the use action with specified compiler job

This commit is contained in:
Alfi Maulana 2023-01-11 21:57:08 +07:00
parent 1615d1b12a
commit 07b809b1eb
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -67,16 +67,15 @@ jobs:
uses: ./
with:
source-dir: test
targets: test_c test_cpp
c-compiler: clang
cxx-compiler: clang++
args: |
-D BUILD_C=ON
-D BUILD_CXX=ON
args: -D CHECK_USING_CLANG=ON
- name: Run build result
run: |
{{ matrix.os == 'windows-latest' && 'build\Debug\hello_world.exe' || 'build/hello_world' }}
{{ matrix.os == 'windows-latest' && 'build\Debug\hello_world_c.exe' || 'build/hello_world_c' }}
${{ matrix.os == 'windows-latest' && 'build\Debug\test_c.exe' || 'build/test_c' }}
${{ matrix.os == 'windows-latest' && 'build\Debug\test_cpp.exe' || 'build/test_cpp' }}
use-action-with-specified-generator:
runs-on: ${{ matrix.os }}