Skip to content

Commit 98e96a0

Browse files
Merge pull request #4 from pulsar-edit/fix-ci
Fix CI
2 parents 9ef7def + a7ab301 commit 98e96a0

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/ci.yml

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

0 commit comments

Comments
 (0)