-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Add] Enable CI & Add vendors & Remove vision pkgs (#27)
1. Enable CI for common building in Ubuntu 20.04 2. Add behaviortreecppv3_vendor 3. Combine sdl2main_vendor and sdl2mixer_vendor into sdl2_vendor 4. Remove opencv_vendor & vision pkgs Signed-off-by: Homalozoa <[email protected]>
- Loading branch information
Showing
56 changed files
with
226 additions
and
1,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04] | ||
fail-fast: false | ||
steps: | ||
- name: Setup ROS 2 | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: galactic | ||
- name: build and test | ||
uses: ros-tooling/[email protected] | ||
with: | ||
target-ros2-distro: galactic | ||
colcon-defaults: | | ||
{ | ||
"build": { | ||
"merge-install": [true] | ||
} | ||
} | ||
- name: Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
file: ros_ws/lcov/total_coverage.info | ||
flags: unittests | ||
name: codecov-umbrella | ||
fail_ci_if_error: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
src/ | ||
build/ | ||
install/ | ||
log/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<name>cyberdog_bringup</name> | ||
<version>1.0.0</version> | ||
<description>CyberDog Launch Scripts</description> | ||
<maintainer email="[email protected]">Homalozoa</maintainer> | ||
<maintainer email="[email protected]">homalozoa</maintainer> | ||
<license>Apache License, Version 2.0</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
project(behaviortreecppv3_vendor) | ||
|
||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
find_package(ament_cmake REQUIRED) | ||
|
||
set(GITHUB_URL "github.com") | ||
option(BUILD_INSIDE_GFW "Build this package in PRC" OFF) | ||
|
||
if(BUILD_INSIDE_GFW) | ||
message(">>> Replace github.com into hub.fastgit.org for PRC users!") | ||
set(GITHUB_URL "hub.fastgit.org") | ||
endif() | ||
|
||
set(EXTPRJ_NAME behaviortreecppv3) | ||
set(OUT_DIR "${CMAKE_BINARY_DIR}/install") | ||
set(GIT_URL "https://${GITHUB_URL}/BehaviorTree/BehaviorTree.CPP.git") | ||
set(PKG_VER "3.5.6") | ||
|
||
include(ExternalProject) | ||
|
||
externalproject_add( | ||
${EXTPRJ_NAME} | ||
PREFIX ${EXTPRJ_NAME} | ||
GIT_REPOSITORY ${GIT_URL} | ||
GIT_TAG ${PKG_VER} | ||
CMAKE_ARGS | ||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} | ||
-DBUILD_EXAMPLES=OFF | ||
-DBUILD_UNIT_TESTS=OFF | ||
INSTALL_DIR ${CMAKE_INSTALL_PREFIX} | ||
TIMEOUT 1200 | ||
) | ||
|
||
ament_package() |
4 changes: 2 additions & 2 deletions
4
cyberdog_common/opencv_vendor/package.xml → ...mmon/behaviortreecppv3_vendor/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?xml version="1.0"?> | ||
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?> | ||
<package format="3"> | ||
<name>opencv_vendor</name> | ||
<name>behaviortreecppv3_vendor</name> | ||
<version>1.0.0</version> | ||
<description>Vendor library for OpenCV of CyberDog.</description> | ||
<description>Vendor library for behaviortree_cpp_v3.</description> | ||
<maintainer email="[email protected]">homalozoa</maintainer> | ||
<license>Apache License 2.0</license> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.