mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-17 15:18:06 +08:00
Fine tune blob uploads
This commit is contained in:
2
packages/cache/src/cache.ts
vendored
2
packages/cache/src/cache.ts
vendored
@@ -465,6 +465,8 @@ async function saveCacheV2(
|
|||||||
// Override UploadOptions to force the use of Azure
|
// Override UploadOptions to force the use of Azure
|
||||||
options = {
|
options = {
|
||||||
...options,
|
...options,
|
||||||
|
uploadChunkSize: 64 * 1024 * 1024, // 128MiB
|
||||||
|
uploadConcurrency: 8, // 8 workers for parallel upload
|
||||||
useAzureSdk: true
|
useAzureSdk: true
|
||||||
}
|
}
|
||||||
const compressionMethod = await utils.getCompressionMethod()
|
const compressionMethod = await utils.getCompressionMethod()
|
||||||
|
|||||||
Reference in New Issue
Block a user