File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,16 +16,25 @@ jobs:
1616 os : [ubuntu-latest, macos-latest]
1717 node_arch :
1818 - x64
19+ fail-fast : false
1920 runs-on : ${{ matrix.os }}
2021 steps :
21- - uses : actions/checkout@v1
22- - uses : actions/setup-node@v2
22+ - uses : actions/checkout@v4
23+ - uses : actions/setup-node@v4
2324 with :
2425 node-version : ' 20.11.1'
2526 architecture : ${{ matrix.node_arch }}
26- # - name: Install windows-build-tools
27- # if: ${{ matrix.os == 'windows-latest' }}
28- # run: npm config set msvs_version 2022
27+ - name : Install Python setuptools
28+ # This is needed for Python 3.12+, since many versions of node-gyp
29+ # are incompatible with Python 3.12+, which no-longer ships 'distutils'
30+ # out of the box. 'setuptools' package provides 'distutils'.
31+ run : python3 -m pip install setuptools
32+ - name : Install windows-build-tools
33+ if : ${{ matrix.os == 'windows-latest' }}
34+ run : npm config set msvs_version 2019
35+ - name : Pre-warm the node headers cache for node-gyp
36+ if : ${{ runner.os == 'Windows' }}
37+ run : npx node-gyp install
2938 - name : Install dependencies
3039 run : npm i
3140 - name : Run tests
You can’t perform that action at this time.
0 commit comments