Skip to content

Commit

Permalink
change ccache directory
Browse files Browse the repository at this point in the history
Signed-off-by: oguzkaganozt <[email protected]>
  • Loading branch information
oguzkaganozt committed Mar 27, 2024
1 parent 9c8e38c commit 6b0e333
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/build_tools/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- name: Add CCACHE_DIR to .bashrc
ansible.builtin.lineinfile:
dest: ~/.bashrc
line: export CCACHE_DIR="/ccache"
line: export CCACHE_DIR="/var/tmp/ccache"
state: present
create: true
mode: 0644
Expand All @@ -31,7 +31,7 @@

- name: Create ccache directory
ansible.builtin.file:
path: /ccache
path: /var/tmp/ccache
state: directory
mode: 0755

Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/tensorrt/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
ansible.builtin.apt:
name:
- libcudnn8-dev={{ cudnn_version }}
- libnvinfer-headers-dev={{ tensorrt_version }}
- libnvinfer-headers-plugin-dev={{ tensorrt_version }}
- libnvinfer-dev={{ tensorrt_version }}
- libnvinfer-plugin-dev={{ tensorrt_version }}
- libnvparsers-dev={{ tensorrt_version }}
Expand Down
4 changes: 2 additions & 2 deletions docker/autoware-openadk/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ARG ROS_DISTRO
ARG SETUP_ARGS
ARG ROS_DISTRO
ENV CCACHE_DIR=/ccache
ENV CCACHE_DIR="/var/tmp/ccache"
ENV CC="/usr/lib/ccache/gcc"
ENV CXX="/usr/lib/ccache/g++"

Expand Down Expand Up @@ -74,7 +74,7 @@ RUN --mount=type=ssh \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
&& find /autoware/install -type d -exec chmod 777 {} \; \
&& chmod -R 777 /ccache \
&& chmod -R 777 /var/tmp/ccache \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* "$HOME"/.cache \
&& rm -rf /autoware/build /autoware/src

Expand Down

0 comments on commit 6b0e333

Please sign in to comment.