Skip to content

Commit e85abc6

Browse files
arkqLyudmilaKostanyan
authored andcommitted
Disable ccache basedir rewrite in global configuration (project-chip#41526)
* Disable ccache basedir rewrite in global configuration * Disable everything globally
1 parent 899a22b commit e85abc6

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

.github/actions/setup-ccache/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ runs:
2929
mkdir -p .ccache
3030
echo "CCACHE_NOHASHDIR=1" >> $GITHUB_ENV
3131
echo "CCACHE_BASEDIR=${{ github.workspace }}" >> $GITHUB_ENV
32+
echo "CCACHE_PREFIX_CPP=${{ github.workspace }}/scripts/helpers/ccache-prefix-cpp.sh" >> $GITHUB_ENV
3233
echo "CCACHE_SLOPPINESS=time_macros" >> $GITHUB_ENV
3334
echo "CCACHE_DIR=${{ github.workspace }}/.ccache" >> $GITHUB_ENV
3435
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV

.github/workflows/examples-linux-arm.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ concurrency:
2828

2929
env:
3030
CCACHE_NOHASHDIR: 1
31+
CCACHE_BASEDIR: ${{ github.workspace }}
32+
CCACHE_PREFIX_CPP: ${{ github.workspace }}/scripts/helpers/ccache-prefix-cpp.sh
3133
CHIP_NO_LOG_TIMESTAMPS: true
3234
CHIP_PW_COMMAND_LAUNCHER: ccache
3335

.github/workflows/examples-linux-standalone.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ concurrency:
2828

2929
env:
3030
CCACHE_NOHASHDIR: 1
31+
CCACHE_BASEDIR: ${{ github.workspace }}
32+
CCACHE_PREFIX_CPP: ${{ github.workspace }}/scripts/helpers/ccache-prefix-cpp.sh
3133
CHIP_NO_LOG_TIMESTAMPS: true
3234
CHIP_PW_COMMAND_LAUNCHER: ccache
3335

scripts/setup/bootstrap.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,14 @@ if [ -n "$ZSH_VERSION" ]; then
205205
fi
206206

207207
# Set ccache environment variables
208-
# TODO: For now, the no-hash-dir is not enabled globally, however, anyone can
208+
# TODO: For now, the ccache env is not enabled globally, however, anyone can
209209
# enable it in the local environment, so apps build in different output
210210
# directories can reuse cache. In order to enable it globally we need
211211
# to figure out why NRF builds do not work when sharing cache between
212212
# applications.
213213
#export CCACHE_NOHASHDIR=1
214-
export CCACHE_PREFIX_CPP="$_CHIP_ROOT/scripts/helpers/ccache-prefix-cpp.sh"
215-
export CCACHE_BASEDIR="$_CHIP_ROOT"
214+
#export CCACHE_BASEDIR="$_CHIP_ROOT"
215+
#export CCACHE_PREFIX_CPP="$_CHIP_ROOT/scripts/helpers/ccache-prefix-cpp.sh"
216216

217217
unset -f _bootstrap_or_activate
218218
unset -f _install_additional_pip_requirements

0 commit comments

Comments
 (0)