Skip to content

Commit 3bd2b45

Browse files
committed
add linux action
1 parent 4fb113d commit 3bd2b45

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

.github/workflows/linux-prebuild.yml

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Use openCV from Apt
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
paths:
7+
- "cc/**"
8+
- "install/**"
9+
- "lib/**"
10+
- "test/**"
11+
- "typings/**"
12+
- "package.json"
13+
- ".github/workflows/linux-prebuild.yml"
14+
pull_request:
15+
branches: [ "master" ]
16+
paths:
17+
- "cc/**"
18+
- "install/**"
19+
- "lib/**"
20+
- "test/**"
21+
- "typings/**"
22+
- "package.json"
23+
- ".github/workflows/linux-prebuild.yml"
24+
25+
env:
26+
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
27+
28+
permissions:
29+
contents: read
30+
31+
jobs:
32+
build:
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
opencv_version:
37+
- 4
38+
node_version:
39+
# - 16
40+
# - 18
41+
- 20
42+
43+
steps:
44+
- uses: actions/checkout@v3
45+
- name: Install OpenCV ${{ matrix.opencv_version }}
46+
run: |
47+
sudo apt update
48+
sudo apt install libopencv-dev
49+
50+
- uses: actions/setup-node@v4
51+
with:
52+
node-version: ${{ matrix.node_version }}
53+
cache: 'pnpm'
54+
55+
- name: pnpm run prepack
56+
run: pnpm run prepack
57+
58+
- name: install deps in test
59+
working-directory: ./test
60+
run: pnpm install --frozen-lockfile
61+
62+
- name: run test-appveyor test
63+
working-directory: ./test
64+
run: pnpm run test-appveyor

0 commit comments

Comments
 (0)