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

Commit cce6298

Browse files
committed
Install recent node-gyp globally
1 parent e9a7985 commit cce6298

File tree

6 files changed

+8
-683
lines changed

6 files changed

+8
-683
lines changed

.github/workflows/ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
uses: actions/setup-node@v2
2323
with:
2424
node-version: ${{matrix.node}}
25+
- name: Install node-gyp
26+
run: sudo npm i -g node-gyp
2527
- name: Run tests
2628
env:
2729
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1

.github/workflows/tagged_release.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
uses: actions/setup-node@v2
2222
with:
2323
node-version: ${{matrix.node}}
24+
- name: Install node-gyp
25+
run: sudo npm i -g node-gyp
2426
- name: Install
2527
run: npm ci --unsafe-perm
2628
- name: Publish prebuild
@@ -43,6 +45,8 @@ jobs:
4345
uses: actions/setup-node@v2
4446
with:
4547
node-version: ${{matrix.node}}
48+
- name: Install node-gyp
49+
run: sudo npm i -g node-gyp
4650
- name: Install
4751
run: npm ci --unsafe-perm
4852
- name: Publish prebuild

ci/prebuild/prebuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ echo "Prebuild runtime: ${RUNTIME}"
1212
cd ../../ &&\
1313
npm install --unsafe-perm &&\
1414
cd test
15-
npm install && npm test
15+
npm install && OPENCV4NODEJS_DISABLE_AUTOBUILD=1 npm test
1616
cd -
1717
npm run prebuild -- -t $TARGET -r $RUNTIME --include-regex "\.(node|a|so|dylib|lib|dll).*$" -u $GITHUB_TOKEN;

ci/test/script/run-test.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2+
export OPENCV4NODEJS_DISABLE_AUTOBUILD=1
23
echo installing &&\
34
npm install --unsafe-perm &&\
45
echo running tests &&\

0 commit comments

Comments
 (0)