File tree 3 files changed +83
-9
lines changed
3 files changed +83
-9
lines changed Original file line number Diff line number Diff line change @@ -42,30 +42,31 @@ jobs:
42
42
43
43
steps :
44
44
- uses : actions/checkout@v4
45
- - name : Install OpenCV ${{ matrix.opencv_version }}
46
- run : |
47
- sudo apt update
48
- sudo apt install libopencv-dev
49
-
50
45
- name : Install Node.js ${{ matrix.node_version }}
51
46
uses : actions/setup-node@v4
52
47
with :
53
48
node-version : ${{ matrix.node_version }}
49
+ cache : ' pnpm'
54
50
51
+ - name : Install OpenCV ${{ matrix.opencv_version }}
52
+ run : |
53
+ sudo apt update
54
+ sudo apt install libopencv-dev
55
+
55
56
- uses : pnpm/action-setup@v3
56
57
name : Install pnpm
57
58
with :
58
59
version : 8
59
60
run_install : |
60
61
- recursive: true
61
- args: [--frozen-lockfile, -- strict-peer-dependencies]
62
+ args: [--strict-peer-dependencies]
62
63
63
64
- name : pnpm run prepack
64
65
run : pnpm run prepack
65
66
66
67
- name : install deps in test
67
68
working-directory : ./test
68
- run : pnpm install --frozen-lockfile
69
+ run : pnpm install
69
70
70
71
- name : run test-appveyor test
71
72
working-directory : ./test
Original file line number Diff line number Diff line change
1
+ name : Use openCV from Brew
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/prebuild-mac.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/prebuild-mac.yml"
24
+
25
+ env :
26
+ OPENCV4NODEJS_DISABLE_AUTOBUILD : 1
27
+
28
+ permissions :
29
+ contents : read
30
+
31
+ jobs :
32
+ build :
33
+ runs-on : macos-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@v4
45
+ - name : Install Node.js ${{ matrix.node_version }}
46
+ uses : actions/setup-node@v4
47
+ with :
48
+ node-version : ${{ matrix.node_version }}
49
+ cache : ' pnpm'
50
+
51
+ - name : Install OpenCV ${{ matrix.opencv_version }}
52
+ run : |
53
+ brew install opencv@${{ matrix.opencv_version }}
54
+
55
+
56
+ - uses : pnpm/action-setup@v3
57
+ name : Install pnpm
58
+ with :
59
+ version : 8
60
+ run_install : |
61
+ - recursive: true
62
+ args: [--strict-peer-dependencies]
63
+
64
+ - name : pnpm run prepack
65
+ run : pnpm run prepack
66
+
67
+ - name : install deps in test
68
+ working-directory : ./test
69
+ run : pnpm install
70
+
71
+ - name : run test-appveyor test
72
+ working-directory : ./test
73
+ run : pnpm run test-appveyor
Original file line number Diff line number Diff line change 10
10
- " test/**"
11
11
- " typings/**"
12
12
- " package.json"
13
- - " .github/workflows/win64- prebuild.yml"
13
+ - " .github/workflows/prebuild-win64 .yml"
14
14
pull_request :
15
15
branches : [ "master" ]
16
16
paths :
20
20
- " test/**"
21
21
- " typings/**"
22
22
- " package.json"
23
- - " .github/workflows/win64- prebuild.yml"
23
+ - " .github/workflows/prebuild-win64 .yml"
24
24
25
25
env :
26
26
# Path to the solution file relative to the root of the project.
You can’t perform that action at this time.
0 commit comments