Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that icub-firmware and icub-firmware-models get updated by the update-latest-releases GitHub Action #1560

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading