mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-08 18:21:20 +00:00
separate test
target into 2 for C and C++
This commit is contained in:
parent
17a40c86ca
commit
6f70267077
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -49,10 +49,10 @@ jobs:
|
||||
uses: ./
|
||||
with:
|
||||
source-dir: test
|
||||
targets: test
|
||||
targets: test_c test_cpp
|
||||
|
||||
- name: Run build result
|
||||
run: build/test
|
||||
run: build/test_c && build/test_cpp
|
||||
|
||||
use-action-with-specified-compiler:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -12,4 +12,5 @@ if(BUILD_CXX)
|
||||
add_executable(hello_world hello_world.cpp)
|
||||
endif()
|
||||
|
||||
add_executable(test EXCLUDE_FROM_ALL test.cpp)
|
||||
add_executable(test_c EXCLUDE_FROM_ALL test.c)
|
||||
add_executable(test_cpp EXCLUDE_FROM_ALL test.cpp)
|
||||
|
3
test/test.c
Normal file
3
test/test.c
Normal file
@ -0,0 +1,3 @@
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user