Skip to content

Commit

Permalink
ci no symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
antbono committed Apr 12, 2024
1 parent 513576b commit bc976d4
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 33 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build_and_test_humble.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Build (humble)
name: Build and test (humble)

# Controls when the action will run.
on:
Expand Down Expand Up @@ -28,16 +28,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
#with:
# use-ros2-testing: true
- uses: ros-tooling/[email protected]
with:
skip-tests: true
use-ros2-testing: true
- uses: ros-tooling/action-ros-ci@christophebedard/option-symlink-install
with:
# skip-tests: true
target-ros2-distro: humble
colcon-defaults: |
{
"build": {
"symlink-install": false
}
}
no-symlink-install: true
vcs-repo-file-url: dependencies.repos
18 changes: 7 additions & 11 deletions .github/workflows/build_and_test_iron.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: Build (iron)
name: Build and test (iron)

# Controls when the action will run.
on:
Expand Down Expand Up @@ -28,16 +28,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
#with:
# use-ros2-testing: true
- uses: ros-tooling/[email protected]
with:
skip-tests: true
use-ros2-testing: true
#- uses: ros-tooling/[email protected]
- uses: ros-tooling/action-ros-ci@christophebedard/option-symlink-install
with:
#skip-tests: true
target-ros2-distro: iron
colcon-defaults: |
{
"build": {
"symlink-install": false
}
}
no-symlink-install: true
vcs-repo-file-url: dependencies.repos
4 changes: 3 additions & 1 deletion .github/workflows/build_and_test_rolling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
- uses: ros-tooling/setup-ros@master
with:
use-ros2-testing: true
- uses: ros-tooling/action-ros-ci@master
#- uses: ros-tooling/action-ros-ci@master
- uses: ros-tooling/action-ros-ci@christophebedard/option-symlink-install
with:
skip-tests: true
target-ros2-distro: rolling
no-symlink-install: true
vcs-repo-file-url: dependencies.repos
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build (humble)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_humble.yaml/badge.svg)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_humble.yaml)
[![Build (iron)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_iron.yaml/badge.svg)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_iron.yaml)
[![Build and test (humble)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_humble.yaml/badge.svg)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_humble.yaml)
[![Build and test (iron)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_iron.yaml/badge.svg)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_iron.yaml)
[![Build (rolling)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_rolling.yaml/badge.svg)](https://github.com/antbono/nao_pos/actions/workflows/build_and_test_rolling.yaml)

# nao_pos
Expand Down
1 change: 1 addition & 0 deletions nao_pos_interfaces/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>ament_cmake_clang_format</test_depend>

<build_depend>rosidl_default_generators</build_depend>
<exec_depend>rosidl_default_runtime</exec_depend>
Expand Down
20 changes: 12 additions & 8 deletions nao_pos_server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,17 @@ install(DIRECTORY
)


# Test
#if(BUILD_TESTING)
# find_package(ament_cmake_gtest REQUIRED)
# add_subdirectory(test)

# find_package(ament_lint_auto REQUIRED)
# ament_lint_auto_find_test_dependencies()
#endif()
#################### TEST ###############################
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
# the following line skips the linter which checks for copyrights
# comment the line when a copyright and license is added to all source files
set(ament_cmake_copyright_FOUND TRUE)
# the following line skips cpplint (only works in a git repo)
# comment the line when this package is in a git repo and when
# a copyright and license is added to all source files
set(ament_cmake_cpplint_FOUND TRUE)
ament_lint_auto_find_test_dependencies()
endif()

ament_package()
1 change: 1 addition & 0 deletions nao_pos_server/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
<test_depend>ament_cmake_clang_format</test_depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down

0 comments on commit bc976d4

Please sign in to comment.