Skip to content

Commit ef38887

Browse files
committed
ci(codeql): install node-gyp globally before c-cpp build
1 parent 7d8737d commit ef38887

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ jobs:
7878
with:
7979
languages: ${{ matrix.language }}
8080

81+
- name: Install node-gyp globally (c-cpp)
82+
# pnpm doesn't bundle node-gyp; install it so the `gypfile: true` auto-rebuild works.
83+
if: matrix.language == 'c-cpp'
84+
run: npm install -g node-gyp
85+
8186
- name: Build native binding (c-cpp)
8287
# CodeQL wraps the compiler: install must happen between init and analyze.
8388
# `pnpm install` triggers postinstall → node-gyp-build → node-gyp rebuild (compiles from source).

0 commit comments

Comments
 (0)