mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
This reverts commit be127fdd32.
This commit is contained in:
18
.github/workflows/pr-darwin-test.yml
vendored
18
.github/workflows/pr-darwin-test.yml
vendored
@@ -32,19 +32,14 @@ jobs:
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: Prepare node_modules cache key
|
||||
id: prepare-node-modules-cache-key
|
||||
run: |
|
||||
set -e
|
||||
mkdir -p .build
|
||||
node build/azure-pipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash
|
||||
echo "node_modules_cache_key=$(cat .build/packagelockhash)" >> $GITHUB_OUTPUT
|
||||
run: mkdir -p .build && node build/azure-pipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash
|
||||
|
||||
- name: Restore node_modules cache
|
||||
id: cache-node-modules
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: .build/node_modules_cache
|
||||
key: "node_modules-macos-${{ steps.prepare-node-modules-cache-key.outputs.node_modules_cache_key }}"
|
||||
key: "node_modules-macos-${{ hashFiles('.build/packagelockhash') }}"
|
||||
|
||||
- name: Extract node_modules cache
|
||||
if: steps.cache-node-modules.outputs.cache-hit == 'true'
|
||||
@@ -90,12 +85,7 @@ jobs:
|
||||
run: mkdir -p .build
|
||||
|
||||
- name: Prepare built-in extensions cache key
|
||||
id: prepare-builtin-extensions-cache-key
|
||||
run: |
|
||||
set -e
|
||||
mkdir -p .build
|
||||
node build/azure-pipelines/common/computeBuiltInDepsCacheKey.ts > .build/builtindepshash
|
||||
echo "builtin_extensions_cache_key=$(cat .build/builtindepshash)" >> $GITHUB_OUTPUT
|
||||
run: node build/azure-pipelines/common/computeBuiltInDepsCacheKey.ts > .build/builtindepshash
|
||||
|
||||
- name: Restore built-in extensions cache
|
||||
id: cache-builtin-extensions
|
||||
@@ -103,7 +93,7 @@ jobs:
|
||||
with:
|
||||
enableCrossOsArchive: true
|
||||
path: .build/builtInExtensions
|
||||
key: "builtin-extensions-${{ steps.prepare-builtin-extensions-cache-key.outputs.builtin_extensions_cache_key }}"
|
||||
key: "builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
|
||||
|
||||
- name: Download built-in extensions
|
||||
if: steps.cache-builtin-extensions.outputs.cache-hit != 'true'
|
||||
|
||||
Reference in New Issue
Block a user