mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 23:59:43 +01:00
engineering: use tar+zstd for win32 node_modules cache (#291624)
* engineering: use tar+zstd for win32 node_modules cache * bump cache * Update .github/workflows/pr-node-modules.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update build/azure-pipelines/win32/product-build-win32-node-modules.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update build/azure-pipelines/win32/steps/product-build-win32-compile.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update .github/workflows/pr-win32-test.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * bump cache salt * more fixes --------- Co-authored-by: Aman Karmani <aman@tmm1.net> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/pr-win32-test.yml
vendored
4
.github/workflows/pr-win32-test.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
- name: Extract node_modules cache
|
||||
if: steps.node-modules-cache.outputs.cache-hit == 'true'
|
||||
shell: pwsh
|
||||
run: 7z.exe x .build/node_modules_cache/cache.7z -aoa
|
||||
run: '& "C:\Program Files\Git\usr\bin\tar.exe" -xf .build/node_modules_cache/cache.tzst -C . --force-local --use-compress-program "zstd -d"'
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.node-modules-cache.outputs.cache-hit != 'true'
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
$ErrorActionPreference = "Stop"
|
||||
exec { node build/azure-pipelines/common/listNodeModules.ts .build/node_modules_list.txt }
|
||||
exec { mkdir -Force .build/node_modules_cache }
|
||||
exec { 7z.exe a .build/node_modules_cache/cache.7z -mx3 `@.build/node_modules_list.txt }
|
||||
exec { & "C:\Program Files\Git\usr\bin\tar.exe" --posix -cf .build/node_modules_cache/cache.tzst --exclude cache.tzst -C . --files-from .build/node_modules_list.txt --force-local --use-compress-program "zstd -T0" }
|
||||
|
||||
- name: Create .build folder
|
||||
shell: pwsh
|
||||
|
||||
Reference in New Issue
Block a user