Skip to content

Commit 40f4c38

Browse files
authored
Set ccache envs to use absolute paths (#2403)
as ccache doesn't seem to work otherwise with relative paths
1 parent 4486a5c commit 40f4c38

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎.circleci/config.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ _commands:
1414
- run:
1515
name: CCache Stats
1616
working_directory: << parameters.workspace >>
17+
environment:
18+
CCACHE_DIR: << parameters.workspace >>/.ccache
1719
command: |
1820
ccache -s # show stats
1921
ccache -z # zero stats
@@ -138,6 +140,8 @@ _commands:
138140
- run:
139141
name: Build Workspace | << parameters.workspace >>
140142
working_directory: << parameters.workspace >>
143+
environment:
144+
CCACHE_DIR: << parameters.workspace >>/.ccache
141145
command: |
142146
colcon cache lock
143147
@@ -421,8 +425,7 @@ _environments:
421425
UNDERLAY_WS: "/opt/underlay_ws"
422426
OVERLAY_WS: "/opt/overlay_ws"
423427
UNDERLAY_MIXINS: "release ccache"
424-
CCACHE_DIR: ".ccache"
425-
CCACHE_LOGFILE: "log/build/ccache.log"
428+
CCACHE_LOGFILE: "/tmp/ccache.log"
426429
CCACHE_MAXSIZE: "200M"
427430
MAKEFLAGS: "-j 2 -l 2 "
428431
COLCON_DEFAULTS_FILE: "/tmp/defaults.yaml"

0 commit comments

Comments
 (0)