Skip to content

Commit acd53f3

Browse files
committed
ci: Fix node-gyp only for windows
1 parent cc9b1fe commit acd53f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ jobs:
4444
uses: actions/setup-node@v3
4545
with:
4646
node-version: ${{ matrix.node-version }}
47-
- name: Fix node-gyp
48-
run: |-
49-
npm install --global node-gyp@latest
50-
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
5147
- run: scripts/ci/build-and-test.sh
5248
env:
5349
NODE_VERSION: ${{ matrix.node-version }}
@@ -71,6 +67,11 @@ jobs:
7167
uses: actions/setup-node@v3
7268
with:
7369
node-version: ${{ matrix.node-version }}
70+
- name: Fix node-gyp
71+
run: |-
72+
npm install --global node-gyp@latest
73+
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
74+
shell: pwsh
7475
- run: bash scripts/ci/build-and-test.sh
7576
shell: bash
7677
env:

0 commit comments

Comments
 (0)