Skip to content

Commit 8cc7dfa

Browse files
Fix conflict
2 parents 6c912d5 + 98e96a0 commit 8cc7dfa

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)