fix(ci/compiler): Remove KeySetCache directory on mac os CI to avoid space disk issues

This commit is contained in:
Bourgerie Quentin
2024-02-19 17:52:20 +01:00
committed by Quentin Bourgerie
parent c53985f112
commit 22bbdec086
2 changed files with 16 additions and 2 deletions

View File

@@ -14,8 +14,13 @@ static inline std::optional<concretelang::keysets::KeysetCache>
getTestKeySetCache() {
llvm::SmallString<0> cachePath;
llvm::sys::path::system_temp_directory(true, cachePath);
llvm::sys::path::append(cachePath, CACHE_PATH);
if (auto envCachepath = std::getenv("KEY_CACHE_DIRECTORY")) {
cachePath.append(envCachepath);
} else {
llvm::sys::path::system_temp_directory(true, cachePath);
llvm::sys::path::append(cachePath, CACHE_PATH);
}
auto cachePathStr = std::string(cachePath);