diff --git a/.github/workflows/build-dep-opencv.yml b/.github/workflows/build-dep-opencv.yml new file mode 100644 index 00000000..38a9a972 --- /dev/null +++ b/.github/workflows/build-dep-opencv.yml @@ -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