Skip to content

Revert opencv version #17

Revert opencv version

Revert opencv version #17

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
check_ubuntu:
name: Build on Ubuntu
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Add public keys
run: sudo apt-get update && sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 &&
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
- name: Install OpenCV
run: sudo apt-get install -y --fix-missing libopencv-dev libopencv-calib3d-dev libopencv-contrib-dev libopencv-features2d-dev libopencv-highgui-dev libopencv-imgcodecs-dev libopencv-objdetect-dev libopencv-shape-dev libopencv-stitching-dev libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev libopencv-videostab-dev libopencv4.5-java libopencv-calib3d4.5 libopencv-contrib4.5 libopencv-features2d4.5 libopencv-highgui4.5 libopencv-imgcodecs4.5 libopencv-videoio4.5
- name: Clang
run: sudo apt-get install -y clang && sudo apt-get install -y clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev
- name: Install other deps
run: sudo apt-get install -y portaudio19-dev build-essential libpulse-dev libdbus-1-dev pkg-config libx11-dev libatk1.0-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libwayland-dev libxkbcommon-dev libstdc++-12-dev
- name: Check project
run: cargo check
- name: Build binary
run: cargo build
check_windows:
name: Build on Windows
runs-on: windows-2022
env:
LLVM_VERSION: 16.0.6
OPENCV_VERSION: 4.6.0
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
- name: Install LLVM/clang
run: choco install -y llvm --version "$LLVM_VERSION"
shell: bash
- name: Install OpenCV
run: choco install -y opencv --version "$OPENCV_VERSION"
shell: bash
- name: Build binary
run: |
export PATH="/C/Program Files/LLVM/bin:$PATH"
export LIBCLANG_PATH="/C/Program Files/LLVM/bin"
export PATH="/C/tools/opencv/build/x64/vc15/bin:$PATH"
export OPENCV_LINK_PATHS="/C/tools/opencv/build/x64/vc15/lib"
export OPENCV_LINK_LIBS="opencv_world${OPENCV_VERSION//./}"
export OPENCV_INCLUDE_PATHS="/C/tools/opencv/build/include"
cargo build
shell: bash