mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
[github-action] check with cmake version 3.10 (#5229)
This commit is contained in:
@@ -56,6 +56,19 @@ jobs:
|
||||
run: |
|
||||
script/make-pretty check
|
||||
|
||||
cmake-version:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Bootstrap
|
||||
run: |
|
||||
sudo pip3 install --system -U cmake==3.10.3
|
||||
cmake --version | grep 3.10.3
|
||||
sudo apt-get --no-install-recommends install -y ninja-build libreadline-dev libncurses-dev
|
||||
- name: Build
|
||||
run: |
|
||||
NODE_MODE=rcp ./script/test build
|
||||
|
||||
package:
|
||||
name: package-${{ matrix.compiler }}
|
||||
runs-on: ubuntu-18.04
|
||||
|
||||
+2
-2
@@ -60,8 +60,8 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "(Apple)?[Cc]lang")
|
||||
|
||||
if(OT_COVERAGE)
|
||||
target_compile_definitions(ot-config INTERFACE "OPENTHREAD_ENABLE_COVERAGE=1")
|
||||
add_compile_options(-g -O0 --coverage)
|
||||
add_link_options(--coverage)
|
||||
target_compile_options(ot-config INTERFACE -g -O0 --coverage)
|
||||
target_link_libraries(ot-config INTERFACE --coverage)
|
||||
endif()
|
||||
|
||||
set(OT_CFLAGS
|
||||
|
||||
@@ -84,7 +84,6 @@ if(LIBRT)
|
||||
endif()
|
||||
|
||||
target_link_libraries(openthread-simulation PRIVATE
|
||||
openthread-platform-utils
|
||||
openthread-platform
|
||||
ot-config)
|
||||
|
||||
|
||||
@@ -42,15 +42,17 @@ set_target_properties(
|
||||
CXX_STANDARD 11
|
||||
)
|
||||
|
||||
target_compile_definitions(openthread-platform-utils PRIVATE
|
||||
$<TARGET_PROPERTY:ot-config,INTERFACE_COMPILE_DEFINITIONS>
|
||||
)
|
||||
|
||||
target_include_directories(openthread-platform-utils PRIVATE
|
||||
${OT_PUBLIC_INCLUDES}
|
||||
$<TARGET_PROPERTY:ot-config,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
${PROJECT_SOURCE_DIR}/examples/platforms
|
||||
${PROJECT_SOURCE_DIR}/examples/platforms/utils
|
||||
${PROJECT_SOURCE_DIR}/src/core
|
||||
${PROJECT_SOURCE_DIR}/third_party/jlink/SEGGER_RTT_V640/RTT
|
||||
)
|
||||
|
||||
# Provide a static library implementation of platform-utils for non-cmake platforms
|
||||
add_library(openthread-platform-utils-static $<TARGET_OBJECTS:openthread-platform-utils>)
|
||||
target_link_libraries(openthread-platform-utils-static PUBLIC openthread-platform-utils)
|
||||
target_link_libraries(openthread-platform-utils PRIVATE ot-config)
|
||||
|
||||
Reference in New Issue
Block a user