File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,21 @@ jobs:
1212 os : [ubuntu-latest, macos-latest, windows-latest]
1313 runs-on : ${{ matrix.os }}
1414 steps :
15- - uses : actions/checkout@v1
16- - uses : actions/setup-node@v2
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-node@v4
1717 with :
18- node-version : ' 14'
18+ node-version : ' 16'
19+ - name : Install Python setuptools
20+ # This is needed for Python 3.12+, since many versions of node-gyp
21+ # are incompatible with Python 3.12+, which no-longer ships 'distutils'
22+ # out of the box. 'setuptools' package provides 'distutils'.
23+ run : python3 -m pip install setuptools
1924 - name : Install windows-build-tools
2025 if : ${{ matrix.os == 'windows-latest' }}
2126 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
2230 - name : Install dependencies
2331 run : npm i
2432 - name : Run tests
You can’t perform that action at this time.
0 commit comments