diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 399b1f5..0000000 --- a/.dockerignore +++ /dev/null @@ -1,6 +0,0 @@ -target -**/.git - -# Ignore all large submodules; TODO we only really need: crates/openvino-sys/upstream/inference-engine/ie_bridges/c/include/c_api/ie_c_api.h -crates/openvino-sys/upstream/* -!crates/openvino-sys/upstream/inference-engine diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 220aa32..23d83eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,10 +19,11 @@ jobs: os: [ubuntu-20.04, ubuntu-22.04, macos-latest, windows-latest] version: [2022.3.0, 2023.0.1, 2023.1.0] apt: [false] - # We also check that things work when installing from APT by adding to the matrix: see + # We also spot-check that things work when installing from APT by adding to the matrix: see # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations include: - os: ubuntu-20.04 + version: 2022.3.0 apt: true env: RUST_LOG: debug @@ -92,7 +93,7 @@ jobs: # the OpenCV dependency is a bit fragile so the crate is not included by the default workspace # commands. converter: - name: Converter tool + name: Check converter tool runs-on: ubuntu-20.04 defaults: run: diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index c4838b2..0000000 --- a/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -# This Dockerfile demonstrates how to build the openvino bindings using an installation of OpenVINO. -# For instructions to install OpenVINO see the OpenVINO documentation, e.g. -# https://docs.openvinotoolkit.org/latest/openvino_docs_install_guides_installing_openvino_apt.html. -ARG OS=ubuntu18 -ARG VERSION=2020.4 -FROM openvino/${OS}_runtime:${VERSION} AS builder - -# OpenVINO's images use a default user, `openvino`, that disallows root access. -USER root - -# Install Rust. -RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal -ENV PATH=/root/.cargo/bin:$PATH -RUN rustup component add rustfmt - -# Install build dependencies (for bindgen). -RUN apt update && apt install -y clang libclang-dev - -# Copy in source code. -WORKDIR /usr/src/openvino-rs -COPY . . - -# Build openvino libraries. -RUN OPENVINO_INSTALL_DIR=/opt/intel/openvino cargo build -vv - -# Test; note that we need to setup the library paths before using them since the -# OPENVINO_INSTALL_DIR can only affect the build library search path. -RUN ["/bin/bash", "-c", "source /opt/intel/openvino/setupvars.sh && OPENVINO_INSTALL_DIR=/opt/intel/openvino cargo test -v"]