Skip to content

Commit a7ab301

Browse files
committed
CI: Pre-warm node headers cache for node-gyp on Windows
Older node-gyp was buggier/had a race condition when trying to grab and cache the node headers multiple times in parallel. Workaround is to install once ahead of time, or upgrade to newer node-gyp.
1 parent 8a7e226 commit a7ab301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
- name: Install windows-build-tools
2525
if: ${{ matrix.os == 'windows-latest' }}
2626
run: npm config set msvs_version 2019
27+
- name: Pre-warm the node headers cache for node-gyp
28+
if: ${{ runner.os == 'Windows' }}
29+
run: npx node-gyp install
2730
- name: Install dependencies
2831
run: npm i
2932
- name: Run tests

0 commit comments

Comments
 (0)