mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-20 10:41:21 +00:00
use test_c
and test_cpp
with check for using clang in the use action with specified compiler job
This commit is contained in:
parent
1615d1b12a
commit
07b809b1eb
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user