Skip to content

Commit f04d43b

Browse files
committed
Split overlay setup into multiple steps
by skipping slower to build leaf packages during preparation, then store cache and repeat setup without skipping packages
1 parent 20e5fed commit f04d43b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.circleci/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ _commands:
123123
type: string
124124
mixins:
125125
type: string
126+
skip:
127+
type: string
126128
build:
127129
default: true
128130
type: boolean
@@ -191,6 +193,7 @@ _commands:
191193
. << parameters.underlay >>/install/setup.sh
192194
colcon build \
193195
--packages-select ${BUILD_PACKAGES} \
196+
--packages-skip < parameters.skip > \
194197
--mixin << parameters.mixins >>
195198
- ccache_stats:
196199
workspace: << parameters.workspace >>
@@ -364,6 +367,13 @@ _steps:
364367
install_dependencies:
365368
underlay: /opt/underlay_ws
366369
workspace: /opt/overlay_ws
370+
prep_overlay_workspace: &prep_overlay_workspace
371+
setup_workspace: &setup_workspace_overlay
372+
key: overlay_ws
373+
underlay: /opt/underlay_ws
374+
workspace: /opt/overlay_ws
375+
mixins: ${OVERLAY_MIXINS}
376+
skip: nav2_system_tests
367377
setup_overlay_workspace: &setup_overlay_workspace
368378
setup_workspace: &setup_workspace_overlay
369379
key: overlay_ws
@@ -417,6 +427,7 @@ commands:
417427
build_source:
418428
description: "Build Source"
419429
steps:
430+
- *prep_overlay_workspace
420431
- *setup_overlay_workspace
421432
restore_build:
422433
description: "Restore Build"

0 commit comments

Comments
 (0)