mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat(ci): macos, fix keysetcache use
This commit is contained in:
2
.github/workflows/continuous-integration.yml
vendored
2
.github/workflows/continuous-integration.yml
vendored
@@ -276,7 +276,7 @@ jobs:
|
||||
if: github.event_name == 'push'
|
||||
run: |
|
||||
cd compiler
|
||||
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} make keysetcache_ci_populated
|
||||
KEYSETCACHECI="$TMPDIR/KeySetCache" GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} make keysetcache_ci_populated
|
||||
|
||||
- name: Test
|
||||
if: github.event_name == 'push'
|
||||
|
||||
@@ -9,7 +9,7 @@ CONCRETE_OPTIMIZER_DIR ?= .dependencies/concrete-optimizer
|
||||
CONCRETE_OPTIMIZER_BRANCH ?= master
|
||||
|
||||
KEYSETCACHEDEV=/tmp/KeySetCache
|
||||
KEYSETCACHECI=../KeySetCache
|
||||
KEYSETCACHECI ?= ../KeySetCache
|
||||
|
||||
export PATH := $(BUILD_DIR)/bin:$(PATH)
|
||||
|
||||
|
||||
@@ -237,6 +237,7 @@ KeySetCache::loadOrGenerateSave(ClientParameters ¶ms, uint64_t seed_msb,
|
||||
return loadKeys(params, seed_msb, seed_lsb, std::string(folderPath));
|
||||
}
|
||||
|
||||
std::cerr << "KeySetCache: miss, regenerating \n";
|
||||
OUTCOME_TRY(auto key_set, KeySet::generate(params, seed_msb, seed_lsb));
|
||||
|
||||
OUTCOME_TRYV(saveKeys(*key_set, folderPath));
|
||||
|
||||
@@ -114,6 +114,9 @@ getTestKeySetCache() {
|
||||
llvm::sys::path::append(cachePath, "KeySetCache");
|
||||
|
||||
auto cachePathStr = std::string(cachePath);
|
||||
|
||||
std::cout << "Using KeySetCache dir: " << cachePathStr << "\n";
|
||||
|
||||
return llvm::Optional<concretelang::clientlib::KeySetCache>(
|
||||
concretelang::clientlib::KeySetCache(cachePathStr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user