Skip to content

Commit

Permalink
add build script for opencv
Browse files Browse the repository at this point in the history
  • Loading branch information
luc committed Nov 27, 2023
1 parent b668442 commit 6694379
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-dep-opencv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build OpenCV

on:
workflow_dispatch:
push:
branches:
- build-workflow

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/prebuit/linux_opencv_4.7.0

0 comments on commit 6694379

Please sign in to comment.