Skip to content

Commit

Permalink
Merge pull request #1560 from robotology/fix863
Browse files Browse the repository at this point in the history
Ensure that icub-firmware and icub-firmware-models get updated by the update-latest-releases GitHub Action
  • Loading branch information
traversaro authored Dec 20, 2023
2 parents 7dda345 + a30d1bf commit 442f753
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .ci/all-options-enabled-cache.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ set(ROBOTOLOGY_ENABLE_TELEOPERATION ON CACHE BOOL "")
set(ROBOTOLOGY_ENABLE_EVENT_DRIVEN ON CACHE BOOL "")
set(ROBOTOLOGY_ENABLE_GRASPING ON CACHE BOOL "")






# Internal profile
set(ROBOTOLOGY_INTERNAL_CLONE_ALL_REPOS_FOR_UPDATE ON CACHE BOOL "")
# all-options-enabled-cache.cmake is usd by the update-latest-releases action,
# that requires repos to be cloned in a non-shallow way. So here we override
# also the shallow options for the repos that have shallow enabled
set(icub-firmware-build_SHALLOW ON CACHE BOOL "")
18 changes: 18 additions & 0 deletions cmake/Buildicub-firmware-models.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause

include(YCMEPHelper)
include(FindOrBuildPackage)

ycm_ep_helper(icub-firmware-models TYPE GIT
STYLE GITHUB
REPOSITORY robotology/icub-firmware-models.git
COMPONENT iCub
FOLDER src
# Just some dummy commands that exists on all operating systems
# as we do not actually want to build anything for this repo,
# just to clone it
CONFIGURE_COMMAND ${CMAKE_COMMAND} --version
BUILD_COMMAND ${CMAKE_COMMAND} --version
INSTALL_COMMAND ${CMAKE_COMMAND} --version
)
18 changes: 18 additions & 0 deletions cmake/Buildicub-firmware.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: Fondazione Istituto Italiano di Tecnologia (IIT)
# SPDX-License-Identifier: BSD-3-Clause

include(YCMEPHelper)
include(FindOrBuildPackage)

ycm_ep_helper(icub-firmware TYPE GIT
STYLE GITHUB
REPOSITORY robotology/icub-firmware.git
COMPONENT iCub
FOLDER src
# Just some dummy commands that exists on all operating systems
# as we do not actually want to build anything for this repo,
# just to clone it
CONFIGURE_COMMAND ${CMAKE_COMMAND} --version
BUILD_COMMAND ${CMAKE_COMMAND} --version
INSTALL_COMMAND ${CMAKE_COMMAND} --version
)
1 change: 1 addition & 0 deletions cmake/ProjectsTagsUnstable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ set_tag(WBToolbox_TAG devel)
set_tag(BlockFactory_TAG devel)
set_tag(icub-tests_TAG devel)
set_tag(iDynTree_TAG master)
set_tag(icub-firmware_TAG devel)
set_tag(icub_firmware_shared_TAG devel)
set_tag(yarp-matlab-bindings_TAG master)
set_tag(GazeboYARPPlugins_TAG devel)
Expand Down
7 changes: 7 additions & 0 deletions cmake/RobotologySuperbuildLogic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,10 @@ if(ROBOTOLOGY_ENABLE_R1_ROBOT)
find_or_build_package(navigation)
find_or_build_package(cer)
endif()

# Dummy option used to only clone repos to update them
# via update-latest-releases.yml GitHub Action
if(ROBOTOLOGY_INTERNAL_CLONE_ALL_REPOS_FOR_UPDATE)
find_or_build_package(icub-firmware)
find_or_build_package(icub-firmware-models)
endif()
5 changes: 5 additions & 0 deletions cmake/RobotologySuperbuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ option(ROBOTOLOGY_ENABLE_ICUB_BASIC_DEMOS "Enable compilation of software necess
option(ROBOTOLOGY_ENABLE_HUMAN_DYNAMICS "Enable compilation of software for human dynamics estimation." FALSE)
option(ROBOTOLOGY_ENABLE_GRASPING "Enable compilation of software for grasping." FALSE)

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

include(CMakeDependentOption)

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)
Expand Down

0 comments on commit 442f753

Please sign in to comment.