Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit c8b0c97

Browse files
committed
found a new snippet
1 parent 67c6db9 commit c8b0c97

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ jobs:
2424
- 14
2525
- 16
2626
- 18
27-
# These fail with a useless error message
28-
exclude:
29-
- os: windows-latest
30-
node: 16
31-
- os: windows-latest
32-
node: 18
3327
fail-fast: false
3428
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
3529
runs-on: ${{ matrix.os }}
@@ -41,14 +35,21 @@ jobs:
4135
- uses: actions/setup-node@v3
4236
with:
4337
node-version: ${{ matrix.node }}
44-
- name: Update node-gyp
38+
- name: Update node-gyp for Node 14
4539
if: ${{ matrix.os == 'windows-latest' && matrix.node == '14' }}
4640
run: |
4741
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
4842
$NodeDirPath = Split-Path $WhereNode -Parent
4943
$NodeModulesPath = $NodeDirPath + "\node_modules\npm\node_modules\npm-lifecycle"
5044
cd $NodeModulesPath
5145
npm install [email protected]
46+
- name: Update node-gyp for Node 16 or 18
47+
if: ${{ matrix.os == 'windows-latest' && ( matrix.node == '16' || matrix.node == '18' ) }}
48+
shell: powershell
49+
run: |
50+
npm install --global node-gyp@latest
51+
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
52+
5253
- run: npm install
5354
- run: npm test
5455

0 commit comments

Comments
 (0)