]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
install-deps: save and restore user's XDG_CACHE_HOME
authorluo rixin <luorixin@huawei.com>
Tue, 16 Apr 2024 07:18:06 +0000 (15:18 +0800)
committerluo rixin <luorixin@huawei.com>
Thu, 18 Apr 2024 01:05:39 +0000 (09:05 +0800)
commita17342147d4411211ecf646730987d2633dabb6e
tree1497aae1499cae45862b5f49747c88eb1a978286
parenta7639cb6ce633dabc4d37769d62caacb54582984
install-deps: save and restore user's XDG_CACHE_HOME

Since ccache 4.0, ccache use $XDG_CACHE_HOME/ccache to keep compile cache
if XDG_CACHE_HOME is set. In this case $XDG_CACHE_HOME is overwrite,
ccache will use $XDG_CACHE_HOME/ccache(ccache will create the dir if not exsit) to
store compile cache, but $XDG_CACHE_HOME will be removed next round running,
leading to ccache contests are always removed. So save and restore user's XDG_CACHE_HOME.

Fixes: https://tracker.ceph.com/issues/65175
Signed-off-by: luo rixin <luorixin@huawei.com>
install-deps.sh