mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-08 18:21:20 +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: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
source-dir: test
|
source-dir: test
|
||||||
|
targets: test_c test_cpp
|
||||||
c-compiler: clang
|
c-compiler: clang
|
||||||
cxx-compiler: clang++
|
cxx-compiler: clang++
|
||||||
args: |
|
args: -D CHECK_USING_CLANG=ON
|
||||||
-D BUILD_C=ON
|
|
||||||
-D BUILD_CXX=ON
|
|
||||||
|
|
||||||
- name: Run build result
|
- name: Run build result
|
||||||
run: |
|
run: |
|
||||||
{{ matrix.os == 'windows-latest' && 'build\Debug\hello_world.exe' || 'build/hello_world' }}
|
${{ matrix.os == 'windows-latest' && 'build\Debug\test_c.exe' || 'build/test_c' }}
|
||||||
{{ matrix.os == 'windows-latest' && 'build\Debug\hello_world_c.exe' || 'build/hello_world_c' }}
|
${{ matrix.os == 'windows-latest' && 'build\Debug\test_cpp.exe' || 'build/test_cpp' }}
|
||||||
|
|
||||||
use-action-with-specified-generator:
|
use-action-with-specified-generator:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
Loading…
Reference in New Issue
Block a user