-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.46 KB
/
build-dep-opencv.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
name: Build dependancy OpenCV
on:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Run build script
working-directory: ${{ github.workspace }}/externals/prebuild_scripts/
run: ./build_opencv_w_contrib_for_win64.bat 4.7.0
- name: Archive prebuilt opencv
uses: actions/upload-artifact@v3
with:
name: prebuilt-opencv-windows
path: ${{ github.workspace }}/externals/prebuild_scripts/win64_opencv_4.7.0
build-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Run build script
working-directory: ${{ github.workspace }}/externals/prebuild_scripts/
run: ./build_opencv_w_contrib_for_linux.sh 4.7.0
- name: Archive prebuilt opencv
uses: actions/upload-artifact@v3
with:
name: prebuilt-opencv-linux
path: ${{ github.workspace }}/externals/prebuilt/linux_opencv_4.7.0
build-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Run build script intel
working-directory: ${{ github.workspace }}/externals/prebuild_scripts/
run: arch -x86_64 ./build_opencv_w_contrib_for_mac64.sh 4.7.0
- name: Archive prebuilt opencv intel
uses: actions/upload-artifact@v3
with:
name: prebuilt-opencv-mac intel
path: ${{ github.workspace }}/externals/prebuild_scripts/opencv/build/mac64_opencv_4.7.0