3
3
push :
4
4
branches :
5
5
- " *"
6
- tags_ignore :
7
- - " *"
8
6
pull_request :
9
7
branches :
10
8
- " *"
@@ -15,39 +13,45 @@ jobs:
15
13
matrix :
16
14
os-image :
17
15
- ubuntu-22.04
18
- - macos-12
19
- version :
20
- - opencv : 3.4.19
21
- - opencv : 4.8.0
22
- exclude :
23
- - os-image : macos-12
24
- version :
25
- opencv : 3.4.20
16
+ - macos-13
17
+ opencv-version :
18
+ - 3.4.20
19
+ - 4.9.0
20
+ linkage :
21
+ - dynamic
26
22
include :
27
23
- os-image : ubuntu-22.04
28
- version :
29
- opencv : 4.8.0- static
24
+ opencv- version : 4.9.0
25
+ linkage : static
30
26
runs-on : ${{ matrix.os-image }}
31
27
env :
32
28
Atlas_ROOT_DIR : /usr/include/ # for cmake to find lapacke.h
33
- OPENCV_VERSION : ${{ matrix.version.opencv }}
29
+ OPENCV_VERSION : ${{ matrix.opencv-version }}
30
+ OPENCV_LINKAGE : ${{ matrix.linkage }}
31
+ SCCACHE_GHA_ENABLED : " true"
32
+ RUSTC_WRAPPER : " sccache"
33
+ CMAKE_C_COMPILER_LAUNCHER : " sccache"
34
+ CMAKE_CXX_COMPILER_LAUNCHER : " sccache"
34
35
steps :
35
- - uses : actions/checkout@v3
36
+ - uses : actions/checkout@v4
37
+ - uses : dtolnay/rust-toolchain@stable
38
+ -
uses :
mozilla-actions/[email protected]
39
+ - uses : actions/cache@v4
40
+ with :
41
+ path : ~/dist
42
+ key : dist-${{ matrix.opencv-version }}
36
43
37
- - name : Cache dependencies
38
- uses : actions/cache@v3
44
+ - uses : actions/cache@v4
39
45
with :
40
46
path : ~/build
41
- key : src -${{ matrix.version.opencv }}-${{ matrix.os-image }}
47
+ key : build -${{ matrix.opencv- version }}-${{ matrix.linkage }}-${{ matrix.os-image }}
42
48
43
49
- name : Install dependencies
44
50
env :
45
51
OS_FAMILY : ${{ runner.os }}
46
52
run : ci/install.sh
47
53
shell : bash
48
54
49
- - uses : dtolnay/rust-toolchain@stable
50
-
51
55
- name : Test project
52
56
env :
53
57
OS_FAMILY : ${{ runner.os }}
@@ -61,28 +65,29 @@ jobs:
61
65
os-image :
62
66
- ubuntu-22.04
63
67
- windows-2022
64
- version :
65
- - vcpkg : b7dba7f9aad09a56900f21cd78cfda1258e54e38
68
+ - macos-14
69
+ vcpkg-version :
70
+ - 2024.03.25
66
71
runs-on : ${{ matrix.os-image }}
67
72
env :
68
- VCPKG_VERSION : ${{ matrix.version.vcpkg }}
73
+ VCPKG_VERSION : ${{ matrix.vcpkg-version }}
74
+ SCCACHE_GHA_ENABLED : " true"
75
+ RUSTC_WRAPPER : " sccache"
69
76
steps :
70
- - uses : actions/checkout@v3
71
-
72
- - name : Cache dependencies
73
- uses : actions/cache@v3
77
+ - uses : actions/checkout@v4
78
+ - uses : dtolnay/rust-toolchain@stable
79
+ -
uses : mozilla-actions/[email protected]
80
+ - uses : actions/cache@v4
74
81
with :
75
82
path : ~/build
76
- key : vcpkg-${{ matrix.version. vcpkg }}-${{ matrix.os-image }}
83
+ key : vcpkg-${{ matrix.vcpkg-version }}-${{ matrix.os-image }}
77
84
78
85
- name : Install dependencies
79
86
env :
80
87
OS_FAMILY : ${{ runner.os }}
81
88
run : ci/install.sh
82
89
shell : bash
83
90
84
- - uses : dtolnay/rust-toolchain@stable
85
-
86
91
- name : Test project
87
92
env :
88
93
OS_FAMILY : ${{ runner.os }}
@@ -94,35 +99,37 @@ jobs:
94
99
fail-fast : false
95
100
matrix :
96
101
os-image :
97
- - macos-12
98
102
- windows-2022
99
103
version :
100
- - branch : 3.4
101
- opencv : 3.4.16
102
- brew : " @3"
103
- - branch : 4
104
- opencv : 4.7.0
105
- brew : " @4"
104
+ - opencv : 3.4.16
105
+ - opencv : 4.9.0
106
106
include :
107
107
- os-image : ubuntu-22.04
108
108
version :
109
109
opencv : 4.5.4
110
- brew : excluded
110
+ - os-image : ubuntu-20.04
111
+ version :
112
+ opencv : 4.2.0
113
+ - os-image : macos-14
114
+ version :
115
+ brew : " @4"
111
116
runs-on : ${{ matrix.os-image }}
112
117
env :
113
118
OPENCV_VERSION : ${{ matrix.version.opencv }}
114
119
BREW_OPENCV_VERSION : ${{ matrix.version.brew }}
120
+ SCCACHE_GHA_ENABLED : " true"
121
+ RUSTC_WRAPPER : " sccache"
115
122
steps :
116
- - uses : actions/checkout@v3
123
+ - uses : actions/checkout@v4
124
+ - uses : dtolnay/rust-toolchain@stable
125
+ -
uses :
mozilla-actions/[email protected]
117
126
118
127
- name : Install dependencies
119
128
env :
120
129
OS_FAMILY : ${{ runner.os }}
121
130
run : ci/install.sh
122
131
shell : bash
123
132
124
- - uses : dtolnay/rust-toolchain@stable
125
-
126
133
- name : Test project
127
134
env :
128
135
OS_FAMILY : ${{ runner.os }}
@@ -132,26 +139,34 @@ jobs:
132
139
docs-rs :
133
140
runs-on : ubuntu-22.04
134
141
steps :
135
- - uses : actions/checkout@v3
136
-
142
+ - uses : actions/checkout@v4
137
143
- uses : dtolnay/rust-toolchain@stable
138
144
139
145
- name : Run a documentation generation test
140
146
run : ci/docs-rs.sh
141
147
shell : bash
142
148
143
149
msrv :
144
- runs-on : ubuntu-22 .04
150
+ runs-on : ubuntu-20 .04
145
151
env :
146
- OPENCV_VERSION : 4.5.4
152
+ OPENCV_VERSION : 4.9.0
153
+ SCCACHE_GHA_ENABLED : " true"
154
+ RUSTC_WRAPPER : " sccache"
155
+ CMAKE_C_COMPILER_LAUNCHER : " sccache"
156
+ CMAKE_CXX_COMPILER_LAUNCHER : " sccache"
147
157
steps :
148
- - uses : actions/checkout@v3
158
+ - uses : actions/checkout@v4
159
+ -
uses :
mozilla-actions/[email protected]
149
160
150
- - name : Install dependencies
151
- env :
152
- OS_FAMILY : ${{ runner.os }}
153
- run : ci/install.sh
154
- shell : bash
161
+ - uses : actions/cache@v4
162
+ with :
163
+ path : ~/dist
164
+ key : dist-${{ env.OPENCV_VERSION }}
165
+
166
+ - uses : actions/cache@v4
167
+ with :
168
+ path : ~/build
169
+ key : build-${{ env.OPENCV_VERSION }}-ubuntu-20.04
155
170
156
171
- name : Get MSRV package metadata
157
172
id : metadata
@@ -161,6 +176,12 @@ jobs:
161
176
with :
162
177
toolchain : ${{ steps.metadata.outputs.msrv }}
163
178
179
+ - name : Install dependencies
180
+ env :
181
+ OS_FAMILY : ${{ runner.os }}
182
+ run : ci/install.sh
183
+ shell : bash
184
+
164
185
- name : Check project
165
186
env :
166
187
OS_FAMILY : ${{ runner.os }}
0 commit comments