Skip to content

Commit a9b5e0a

Browse files
committed
Ensure that icub-firmware gets updated by the update-latest-releases GitHub Action
1 parent 7dda345 commit a9b5e0a

4 files changed

+35
-5
lines changed

.ci/all-options-enabled-cache.cmake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ set(ROBOTOLOGY_ENABLE_TELEOPERATION ON CACHE BOOL "")
1919
set(ROBOTOLOGY_ENABLE_EVENT_DRIVEN ON CACHE BOOL "")
2020
set(ROBOTOLOGY_ENABLE_GRASPING ON CACHE BOOL "")
2121

22-
23-
24-
25-
26-
22+
# Internal profile
23+
set(ROBOTOLOGY_INTERNAL_CLONE_ALL_REPOS_FOR_UPDATE ON CACHE BOOL "")
24+
# all-options-enabled-cache.cmake is usd by the update-latest-releases action,
25+
# that requires repos to be cloned in a non-shallow way. So here we override
26+
# also the shallow options for the repos that have shallow enabled
27+
set(icub-firmware-build_SHALLOW ON CACHE BOOL "")

cmake/Buildicub-firmware.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
4+
include(YCMEPHelper)
5+
include(FindOrBuildPackage)
6+
7+
ycm_ep_helper(icub-firmware TYPE GIT
8+
STYLE GITHUB
9+
REPOSITORY robotology/icub-firmware.git
10+
COMPONENT iCub
11+
FOLDER src
12+
# Just some dummy commands that exists on all operating systems
13+
# as we do not actually want to build anything for this repo,
14+
# just to clone it
15+
CONFIGURE_COMMAND ${CMAKE_COMMAND} --version
16+
BUILD_COMMAND ${CMAKE_COMMAND} --version
17+
INSTALL_COMMAND ${CMAKE_COMMAND} --version
18+
)

cmake/RobotologySuperbuildLogic.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,9 @@ if(ROBOTOLOGY_ENABLE_R1_ROBOT)
173173
find_or_build_package(navigation)
174174
find_or_build_package(cer)
175175
endif()
176+
177+
# Dummy option used to only clone repos to update them
178+
# via update-latest-releases.yml GitHub Action
179+
if(ROBOTOLOGY_INTERNAL_CLONE_ALL_REPOS_FOR_UPDATE)
180+
find_or_build_package(icub-firmware)
181+
endif()

cmake/RobotologySuperbuildOptions.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ option(ROBOTOLOGY_ENABLE_ICUB_BASIC_DEMOS "Enable compilation of software necess
4545
option(ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS "Enable compilation of software for human dynamics estimation." FALSE)
4646
option(ROBOTOLOGY_ENABLE_GRASPING "Enable compilation of software for grasping." FALSE)
4747

48+
# This is just a private undocumented option to download repos that are tracked in LatestReleases.yaml,
49+
# but they are not actually build by the superbuild
50+
option(ROBOTOLOGY_INTERNAL_CLONE_ALL_REPOS_FOR_UPDATE "(Internal) Clone all repos for automatic version update." FALSE)
51+
mark_as_advanced(ROBOTOLOGY_INTERNAL_CLONE_ALL_REPOS_FOR_UPDATE)
52+
4853
include(CMakeDependentOption)
4954

5055
cmake_dependent_option(ROBOTOLOGY_USES_CFW2CAN "Enable compilation of software that runs on the head of the iCub and depends on CFW2CAN." FALSE "ROBOTOLOGY_ENABLE_ICUB_HEAD" FALSE)

0 commit comments

Comments
 (0)