Skip to content

Commit

Permalink
feat(docker): cache ccache to the Docker build cache (autowarefound…
Browse files Browse the repository at this point in the history
…ation#4800)

cache ccache again

Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk authored May 31, 2024
1 parent 033a3a1 commit efb89f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \

# Build Autoware
COPY --from=src-imported /autoware/src /autoware/src
RUN source /opt/ros/"$ROS_DISTRO"/setup.bash \
RUN --mount=type=cache,target=${CCACHE_DIR} \
source /opt/ros/"$ROS_DISTRO"/setup.bash \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \
" -Wno-dev" \
" --no-warn-unused-cli" \
Expand Down

0 comments on commit efb89f3

Please sign in to comment.