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

feat(docker): test ccache on docker build #27

Closed
wants to merge 44 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
e2b4d34
ccache -s
youtalk Jun 5, 2024
f610c19
empty
youtalk Jun 5, 2024
a4818ba
update ccache
youtalk Jun 5, 2024
5494ef6
fix flags
youtalk Jun 5, 2024
160f822
change dir
youtalk Jun 6, 2024
063769c
du
youtalk Jun 6, 2024
7b0ba79
mkdir
youtalk Jun 6, 2024
d8eb1b4
remove args
youtalk Jun 6, 2024
199ab74
remove duplicate release flag
youtalk Jun 6, 2024
5f6d931
remove --mount=type=cache
youtalk Jun 6, 2024
ada5085
use mixin instead
youtalk Jun 6, 2024
1f3bcc0
ccache inline
youtalk Jun 6, 2024
711c4f8
cache .ccache
youtalk Jun 6, 2024
684a698
cache .ccache
youtalk Jun 6, 2024
7a32798
remove chmod
youtalk Jun 6, 2024
074c51b
add .ccache
youtalk Jun 6, 2024
14c7511
revert options
youtalk Jun 6, 2024
9dfc62d
add rw
youtalk Jun 6, 2024
9b0a77a
check ccache
youtalk Jun 6, 2024
8b21417
mkdir .ccache instead
youtalk Jun 6, 2024
d99a5db
ignore .ccache
youtalk Jun 6, 2024
c8fae81
chmod
youtalk Jun 6, 2024
3e69bc0
set CCACHE_DIR
youtalk Jun 6, 2024
58d8522
test
youtalk Jun 6, 2024
f1d8645
typo
youtalk Jun 6, 2024
68d5598
refine cache key
youtalk Jun 6, 2024
4212cfa
change dir
youtalk Jun 6, 2024
6b26991
change source dir
youtalk Jun 6, 2024
57f68c9
fix dir
youtalk Jun 6, 2024
faaa6fc
rename dir
youtalk Jun 6, 2024
5d558f6
change dir
youtalk Jun 6, 2024
9040d19
comment out
youtalk Jun 6, 2024
d6575f0
revert to use cache mount
youtalk Jun 7, 2024
e2f37c4
change dir
youtalk Jun 7, 2024
7426cb4
remove original .ccache
youtalk Jun 7, 2024
03457d2
add syntax
youtalk Jun 7, 2024
1e04069
mkdir
youtalk Jun 7, 2024
6756223
disable ansible install
youtalk Jun 7, 2024
1c6e4e6
copy from host
youtalk Jun 7, 2024
3776dcc
just test cache mount
youtalk Jun 7, 2024
4fbd9ba
comment out
youtalk Jun 7, 2024
08daf37
empty
youtalk Jun 7, 2024
a220f0f
Revert "comment out"
youtalk Jun 7, 2024
ba9e860
Revert "just test cache mount"
youtalk Jun 7, 2024
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
Prev Previous commit
Next Next commit
update ccache
Signed-off-by: Yutaka Kondo <yutaka.kondo@youtalk.jp>
  • Loading branch information
youtalk committed Jun 5, 2024
commit a4818ba9815aee52cd6f8ef563f3a92d65d4557a
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ARG ROS_DISTRO
ARG SETUP_ARGS
ENV CCACHE_DIR="/var/tmp/ccache"
ENV CC="/usr/lib/ccache/gcc"
ENV CXX="/usr/lib/ccache/g++"

# cspell: ignore libcu libnv
# Set up development environment
Expand All @@ -92,6 +90,8 @@ RUN ccache -s
RUN --mount=type=cache,target=${CCACHE_DIR} \
source /opt/ros/"$ROS_DISTRO"/setup.bash \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release --cmake-args \
" -DCMAKE_C_COMPILER_LAUNCHER=ccache",
" -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
" -Wno-dev" \
" --no-warn-unused-cli" \
-DCMAKE_BUILD_TYPE=Release \
Expand Down
Loading