diff --git a/dist/index.cjs b/dist/index.cjs index 72309126..310cdbe7 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -136983,7 +136983,11 @@ async function restoreCache2(key, restoreKeys, paths, options) { } try { const cacheKey = await (0, import_exponential_backoff.backOff)( - async () => await cache.restoreCache(paths, key, restoreKeys, options), + async () => await cache.restoreCache(paths, key, restoreKeys, { + useAzureSdk: true, + downloadConcurrency: 8, + ...options + }), { numOfAttempts: 5 } ); if (cacheKey) { @@ -137010,9 +137014,13 @@ async function saveCache2(key, paths) { return; } try { - await (0, import_exponential_backoff.backOff)(async () => await cache.saveCache(paths, key), { - numOfAttempts: 5 - }); + await (0, import_exponential_backoff.backOff)( + async () => await cache.saveCache(paths, key, { + useAzureSdk: true, + uploadConcurrency: 8 + }), + { numOfAttempts: 5 } + ); } catch (error2) { if (error2 instanceof Error) { core4.info(error2.message); diff --git a/dist/post/index.cjs b/dist/post/index.cjs index fcce7ab9..1652ebc8 100644 --- a/dist/post/index.cjs +++ b/dist/post/index.cjs @@ -96364,9 +96364,13 @@ async function saveCache2(key, paths) { return; } try { - await (0, import_exponential_backoff.backOff)(async () => await cache.saveCache(paths, key), { - numOfAttempts: 5 - }); + await (0, import_exponential_backoff.backOff)( + async () => await cache.saveCache(paths, key, { + useAzureSdk: true, + uploadConcurrency: 8 + }), + { numOfAttempts: 5 } + ); } catch (error2) { if (error2 instanceof Error) { core2.info(error2.message); diff --git a/packages/setup-ocaml/src/cache.ts b/packages/setup-ocaml/src/cache.ts index caba1657..5bc7360b 100644 --- a/packages/setup-ocaml/src/cache.ts +++ b/packages/setup-ocaml/src/cache.ts @@ -109,7 +109,12 @@ async function restoreCache( } try { const cacheKey = await backOff( - async () => await cache.restoreCache(paths, key, restoreKeys, options), + async () => + await cache.restoreCache(paths, key, restoreKeys, { + useAzureSdk: true, + downloadConcurrency: 8, + ...options, + }), { numOfAttempts: 5 }, ); if (cacheKey) { @@ -137,9 +142,14 @@ async function saveCache(key: string, paths: string[]) { return; } try { - await backOff(async () => await cache.saveCache(paths, key), { - numOfAttempts: 5, - }); + await backOff( + async () => + await cache.saveCache(paths, key, { + useAzureSdk: true, + uploadConcurrency: 8, + }), + { numOfAttempts: 5 }, + ); } catch (error) { if (error instanceof Error) { core.info(error.message);