Skip to content

Commit 5b11ebe

Browse files
committed
Bump CI Ubuntu image to 24.04
1 parent a29d222 commit 5b11ebe

File tree

2 files changed

+49
-7
lines changed

2 files changed

+49
-7
lines changed

.github/workflows/opencv-rust.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os-image:
15-
- ubuntu-22.04
15+
- ubuntu-24.04
1616
- macos-14
1717
opencv-version:
1818
- 4.11.0
1919
linkage:
2020
- dynamic
2121
include:
22-
- os-image: ubuntu-22.04
22+
- os-image: ubuntu-24.04
2323
opencv-version: 4.11.0
2424
linkage: static
25-
- os-image: ubuntu-22.04
25+
- os-image: ubuntu-24.04
2626
opencv-version: 5.0.0-alpha
2727
linkage: dynamic
28-
- os-image: ubuntu-22.04
28+
- os-image: ubuntu-24.04
2929
opencv-version: 3.4.20
3030
linkage: dynamic
3131
- os-image: macos-13
@@ -67,7 +67,7 @@ jobs:
6767
fail-fast: false
6868
matrix:
6969
os-image:
70-
- ubuntu-22.04
70+
- ubuntu-24.04
7171
- windows-2022
7272
- macos-14
7373
vcpkg-version:
@@ -104,6 +104,9 @@ jobs:
104104
- opencv: 3.4.16
105105
- opencv: 4.10.0
106106
include:
107+
- os-image: ubuntu-24.04
108+
version:
109+
opencv: 4.6.0
107110
- os-image: ubuntu-22.04
108111
version:
109112
opencv: 4.5.4
@@ -133,7 +136,7 @@ jobs:
133136
shell: bash
134137

135138
docs-rs:
136-
runs-on: ubuntu-22.04
139+
runs-on: ubuntu-24.04
137140
steps:
138141
- uses: actions/checkout@v4
139142
- uses: dtolnay/rust-toolchain@stable

ci/install-ubuntu.sh

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ case "$ubuntu_version" in
3030
exit 0
3131
fi
3232
;;
33+
34+
"24.04")
35+
if [[ "$OPENCV_VERSION" == "4.6.0" ]]; then
36+
sudo apt-get -y install "libopencv-dev=${OPENCV_VERSION}*"
37+
exit 0
38+
fi
39+
;;
3340
esac
3441

3542
BUILD_FLAGS="
@@ -136,7 +143,6 @@ BUILD_FLAGS="
136143
sudo apt-get -y install build-essential cmake
137144

138145
if [[ "${OPENCV_LINKAGE:-dynamic}" == "static" ]]; then # static build
139-
# bring back -D BUILD_TBB=ON when updated to Ubuntu-24.04 (https://github.com/opencv/opencv/issues/25187)
140146
BUILD_FLAGS="$BUILD_FLAGS
141147
-D BUILD_JPEG=ON
142148
-D BUILD_OPENJPEG=ON
@@ -157,6 +163,7 @@ if [[ "${OPENCV_LINKAGE:-dynamic}" == "static" ]]; then # static build
157163
-D WITH_LAPACK=OFF
158164
-D WITH_OPENGL=OFF
159165
-D WITH_QT=OFF
166+
-D BUILD_TBB=ON
160167
"
161168
else # dynamic build
162169
case "$ubuntu_version" in
@@ -256,6 +263,38 @@ else # dynamic build
256263
libwebp-dev \
257264
qtbase5-dev
258265
;;
266+
267+
"24.04")
268+
# runtime deps
269+
sudo apt-get -y install \
270+
libatlas-base-dev \
271+
libavcodec-dev \
272+
libavformat-dev \
273+
libceres-dev \
274+
libdc1394-dev \
275+
libeigen3-dev \
276+
libfreetype6-dev \
277+
libgdal-dev \
278+
libgflags-dev \
279+
libgoogle-glog-dev \
280+
libgphoto2-dev \
281+
libgstreamer-plugins-base1.0-dev \
282+
libharfbuzz-dev \
283+
libhdf5-dev \
284+
libjpeg-dev \
285+
liblapacke64-dev \
286+
libleptonica-dev \
287+
libopenexr-dev \
288+
libpng-dev \
289+
libswscale-dev \
290+
libtbb-dev \
291+
libtesseract-dev \
292+
libtiff-dev \
293+
libunwind-dev \
294+
libvtk9-dev \
295+
libwebp-dev \
296+
qtbase5-dev
297+
;;
259298
esac
260299
fi
261300

0 commit comments

Comments
 (0)