mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Engineering - fix built-in extension cache population (#255963)
This commit is contained in:
21
.github/workflows/pr-node-modules.yml
vendored
21
.github/workflows/pr-node-modules.yml
vendored
@@ -32,6 +32,10 @@ jobs:
|
||||
path: .build/node_modules_cache
|
||||
key: "node_modules-compile-${{ hashFiles('.build/packagelockhash') }}"
|
||||
|
||||
- name: Extract node_modules cache
|
||||
if: steps.cache-node-modules.outputs.cache-hit == 'true'
|
||||
run: tar -xzf .build/node_modules_cache/cache.tgz
|
||||
|
||||
- name: Install build tools
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
run: sudo apt update -y && sudo apt install -y build-essential pkg-config libx11-dev libx11-xcb-dev libxkbfile-dev libnotify-bin libkrb5-dev
|
||||
@@ -109,23 +113,6 @@ jobs:
|
||||
path: .build/node_modules_cache
|
||||
key: "node_modules-linux-${{ hashFiles('.build/packagelockhash') }}"
|
||||
|
||||
- name: Install build dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
working-directory: build
|
||||
run: |
|
||||
set -e
|
||||
|
||||
for i in {1..5}; do # try 5 times
|
||||
npm ci && break
|
||||
if [ $i -eq 5 ]; then
|
||||
echo "Npm install failed too many times" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "Npm install failed $i, trying again..."
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.VSCODE_OSS }}
|
||||
|
||||
- name: Install dependencies
|
||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user