Add settings check script to ci
MODIFY
.github/workflows/opencv-rust.yml
.github/workflows/opencv-rust.yml
@@ -148,3 +148,18 @@ jobs:
with:
name: generated-failed-bindings-${{ runner.os }}-3.2.0
path: target
+
+ check:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+ default: true
+
+ - name: Run a self-check
+ run: ci/check.sh
+ shell: bash

ADD
ci/check.sh
+#!/bin/bash
+
+set -vex
+
+sudo apt update
+sudo apt -y install clang
+
+# workaround to make clang_sys crate detect installed libclang
+sudo ln -s libclang.so.1 /usr/lib/llvm-10/lib/libclang.so
+
+cargo run --release -p opencv-binding-generator --bin settings-cleanup -- headers src_cpp

Add settings check script to ci