File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 93
93
id : cache-builtin-extensions
94
94
uses : actions/cache/restore@v4
95
95
with :
96
+ enableCrossOsArchive : true
96
97
path : .build/builtInExtensions
97
98
key : " builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
98
99
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ jobs:
121
121
id : cache-builtin-extensions
122
122
uses : actions/cache/restore@v4
123
123
with :
124
+ enableCrossOsArchive : true
124
125
path : .build/builtInExtensions
125
126
key : " builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
126
127
Original file line number Diff line number Diff line change 72
72
id : cache-builtin-extensions
73
73
uses : actions/cache@v4
74
74
with :
75
+ enableCrossOsArchive : true
75
76
path : .build/builtInExtensions
76
77
key : " builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
77
78
@@ -108,6 +109,23 @@ jobs:
108
109
path : .build/node_modules_cache
109
110
key : " node_modules-linux-${{ hashFiles('.build/packagelockhash') }}"
110
111
112
+ - name : Install build dependencies
113
+ if : steps.cache-node-modules.outputs.cache-hit != 'true'
114
+ working-directory : build
115
+ run : |
116
+ set -e
117
+
118
+ for i in {1..5}; do # try 5 times
119
+ npm ci && break
120
+ if [ $i -eq 5 ]; then
121
+ echo "Npm install failed too many times" >&2
122
+ exit 1
123
+ fi
124
+ echo "Npm install failed $i, trying again..."
125
+ done
126
+ env :
127
+ GITHUB_TOKEN : ${{ secrets.VSCODE_OSS }}
128
+
111
129
- name : Install dependencies
112
130
if : steps.cache-node-modules.outputs.cache-hit != 'true'
113
131
run : |
You can’t perform that action at this time.
0 commit comments