forked from justadudewhohacks/npm-opencv-build
-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (39 loc) · 1.1 KB
/
linux-detect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Use OpenCV from Ubuntu apt
on:
push:
branches: [ "never", "master", "test" ]
paths: ['src/**', 'dist/**', 'package.json', 'pnpm-lock.yaml', 'pnpmfile.js', 'test/**', 'bin/**', 'scripts/**', '.github/workflows/linux-detect.yml' ]
# pull_request:
# branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# node-version: [14.x, 16.x, 18.x]
opencv_version:
- 4
env:
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.14.0
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
sudo apt update
sudo apt install libopencv-dev
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- run: pnpm run build
# --prebuild=latestBuild
- name: Detect OpenCV
run: node bin/main.js --verbose
- run: pnpm test