-
Notifications
You must be signed in to change notification settings - Fork 40
95 lines (86 loc) · 3.24 KB
/
build_ubuntu.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Build Ubuntu
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt 5 + protobuf
run: sudo apt-get update && sudo apt-get install -qq -y libprotobuf-dev qt5-default git build-essential protobuf-compiler cmake pkg-config libjpeg-dev libtiff5-dev libpng-dev
- name: Clone OpenCV
run: >
git clone --branch 4.5.3 --depth 1 https://github.com/opencv/opencv;
git clone --branch 4.5.3 --depth 1 https://github.com/opencv/opencv_contrib;
- name: Compile OpenCV
run: >
cd opencv
&& mkdir build
&& cd build
&& cmake ..
-DOPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules
-DBUILD_TESTS=OFF
-DBUILD_PERF_TESTS=OFF ..
-DCMAKE_BUILD_TYPE=RELEASE
-DBUILD_EXAMPLES=OFF
-DBUILD_DOCS=OFF
-DBUILD_JAVA=OFF
-DBUILD_opencv_apps=OFF
-DBUILD_opencv_aruco=OFF
-DBUILD_opencv_barcode=OFF
-DBUILD_opencv_bgsegm=OFF
-DBUILD_opencv_bioinspired=OFF
-DBUILD_opencv_calib3d=OFF
-DBUILD_opencv_datasets=OFF
-DBUILD_opencv_dpm=OFF
-DBUILD_opencv_dnn_superres=OFF
-DBUILD_opencv_face=OFF
-DBUILD_opencv_features2d=OFF
-DBUILD_opencv_flann=OFF
-DBUILD_opencv_fuzzy=OFF
-DBUILD_opencv_gapi=OFF
-DBUILD_opencv_highgui=ON
-DBUILD_opencv_img_hash=OFF
-DBUILD_opencv_intensity_transform=OFF
-DBUILD_opencv_line_descriptor=OFF
-DBUILD_opencv_mcc=OFF
-DBUILD_opencv_objc_bindings_generator=OFF
-DBUILD_opencv_objdetect=OFF
-DBUILD_opencv_optflow=OFF
-DBUILD_opencv_phase_unwrapping=OFF
-DBUILD_opencv_photo=OFF
-DBUILD_opencv_rgbd=OFF
-DBUILD_opencv_saliency=OFF
-DBUILD_opencv_shape=OFF
-DBUILD_opencv_js_bindings_generator=OFF
-DBUILD_opencv_freetype=OFF
-DBUILD_opencv_quality=OFF
-DBUILD_opencv_reg=OFF
-DBUILD_opencv_stereo=OFF
-DBUILD_opencv_stitching=OFF
-DBUILD_opencv_structured_light=OFF
-DBUILD_opencv_superres=OFF
-DBUILD_opencv_surface_matching=OFF
-DBUILD_opencv_text=OFF
-DBUILD_opencv_ts=OFF
-DBUILD_opencv_videostab=OFF
-DBUILD_opencv_viz=OFF
-DBUILD_opencv_wechat_qrcode=OFF
-DBUILD_opencv_ximgproc=OFF
-DBUILD_opencv_xobjdetect=OFF
-DBUILD_opencv_xphoto=OFF
-DBUILD_opencv_xfeatures2d=OFF
&& make -j4
&& sudo make install
- name: Compile protobuf messages
run: protoc --proto_path ./src/proto --cpp_out ./src/proto feature.proto example.proto
- name: Run QMake
run: qmake -makefile -o Makefile DeepLabel.pro
- name: Run Make
run: make -j4
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: linux-release
path: ./release/deeplabel