Skip to content

Commit c068082

Browse files
authored
Build tweaks (microsoft#255857)
* Revert "remove unnecessary build step (microsoft#255764)" This reverts commit 50bf321. * Add `enableCrossOsArchive: true`
1 parent 22d3dde commit c068082

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/pr-darwin-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
id: cache-builtin-extensions
9494
uses: actions/cache/restore@v4
9595
with:
96+
enableCrossOsArchive: true
9697
path: .build/builtInExtensions
9798
key: "builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
9899

.github/workflows/pr-linux-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ jobs:
121121
id: cache-builtin-extensions
122122
uses: actions/cache/restore@v4
123123
with:
124+
enableCrossOsArchive: true
124125
path: .build/builtInExtensions
125126
key: "builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
126127

.github/workflows/pr-node-modules.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
id: cache-builtin-extensions
7373
uses: actions/cache@v4
7474
with:
75+
enableCrossOsArchive: true
7576
path: .build/builtInExtensions
7677
key: "builtin-extensions-${{ hashFiles('.build/builtindepshash') }}"
7778

@@ -108,6 +109,23 @@ jobs:
108109
path: .build/node_modules_cache
109110
key: "node_modules-linux-${{ hashFiles('.build/packagelockhash') }}"
110111

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+
111129
- name: Install dependencies
112130
if: steps.cache-node-modules.outputs.cache-hit != 'true'
113131
run: |

0 commit comments

Comments
 (0)