Skip to content

Commit

Permalink
Split overlay setup into multiple steps
Browse files Browse the repository at this point in the history
by skipping slower to build leaf packages during preparation,
then store cache and repeat setup without skipping packages
  • Loading branch information
ruffsl committed Apr 26, 2023
1 parent 20e5fed commit f04d43b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ _commands:
type: string
mixins:
type: string
skip:
type: string
build:
default: true
type: boolean
Expand Down Expand Up @@ -191,6 +193,7 @@ _commands:
. << parameters.underlay >>/install/setup.sh
colcon build \
--packages-select ${BUILD_PACKAGES} \
--packages-skip < parameters.skip > \
--mixin << parameters.mixins >>
- ccache_stats:
workspace: << parameters.workspace >>
Expand Down Expand Up @@ -364,6 +367,13 @@ _steps:
install_dependencies:
underlay: /opt/underlay_ws
workspace: /opt/overlay_ws
prep_overlay_workspace: &prep_overlay_workspace
setup_workspace: &setup_workspace_overlay
key: overlay_ws
underlay: /opt/underlay_ws
workspace: /opt/overlay_ws
mixins: ${OVERLAY_MIXINS}
skip: nav2_system_tests
setup_overlay_workspace: &setup_overlay_workspace
setup_workspace: &setup_workspace_overlay
key: overlay_ws
Expand Down Expand Up @@ -417,6 +427,7 @@ commands:
build_source:
description: "Build Source"
steps:
- *prep_overlay_workspace
- *setup_overlay_workspace
restore_build:
description: "Restore Build"
Expand Down

0 comments on commit f04d43b

Please sign in to comment.