Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Aligned Android GitHub Actions workflows with unified Android guidelines (#31884)

Nesterov Alexander3da60482fdfb
diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tag
index 39e500f414b..25006c6f628 100644
--- a/.github/dockerfiles/docker_tag
+++ b/.github/dockerfiles/docker_tag
@@ -1 +1 @@
-pr-31885
+pr-31884
diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile
index 73221d0b6ed..04c90511543 100644
--- a/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile
+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile
@@ -47,10 +47,10 @@ ENV PATH="$SCCACHE_HOME:$PATH"
# Install Android SDK, NDK and Tools
ENV ANDROID_TOOLS /deps/android_tools
-ENV ANDROID_NDK_HOME /deps/android_tools/ndk/26.1.10909125
+ENV ANDROID_NDK_HOME /deps/android_tools/ndk/28.2.13676358
RUN mkdir -p ${ANDROID_NDK_HOME}
-ENV ANDROID_SDK_VERSION 29
+ENV ANDROID_SDK_VERSION 35
-RUN wget https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip && \
- unzip commandlinetools-linux-7583922_latest.zip
-RUN echo "yes" | ./cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_TOOLS} --install "ndk;26.1.10909125" "platform-tools" "platforms;android-${ANDROID_SDK_VERSION}"
+RUN wget https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip && \
+ unzip commandlinetools-linux-9123335_latest.zip
+RUN echo "yes" | ./cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_TOOLS} --install "ndk;28.2.13676358" "platform-tools" "platforms;android-${ANDROID_SDK_VERSION}"
diff --git a/.github/workflows/android_x64.yml b/.github/workflows/android.yml
similarity index 67%
rename from .github/workflows/android_x64.yml
rename to .github/workflows/android.yml
index 7e4040d9c1b..42f738c7d71 100644
--- a/.github/workflows/android_x64.yml
+++ b/.github/workflows/android.yml
@@ -1,4 +1,4 @@
-name: Android x64
+name: Android
on:
workflow_dispatch:
inputs:
@@ -15,14 +15,11 @@ on:
concurrency:
# github.ref is not unique in post-commit
- group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-android-x64
+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-android
cancel-in-progress: true
permissions: read-all
-env:
- TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
-
jobs:
Smart_CI:
runs-on: ubuntu-latest
@@ -81,6 +78,7 @@ jobs:
changed_components: ${{ needs.smart_ci.outputs.changed_components }}
Build:
+ name: Build ${{ matrix.arch }}
needs: [Smart_CI, Docker]
if: "!needs.smart_ci.outputs.skip_workflow"
timeout-minutes: 150
@@ -88,13 +86,25 @@ jobs:
run:
shell: bash
runs-on: aks-linux-16-cores-32gb
+ strategy:
+ matrix:
+ include:
+ - arch: arm64
+ android_abi: arm64-v8a
+ - arch: x64
+ android_abi: x86_64
+# - arch: riscv64 # experimental
+# android_abi: riscv64
container:
image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_android }}
volumes:
- /mount:/mount
options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
env:
+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}
DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
+ CMAKE_GENERATOR: 'Ninja'
+ BUILD_TYPE: Release
CMAKE_CXX_COMPILER_LAUNCHER: sccache
CMAKE_C_COMPILER_LAUNCHER: sccache
SCCACHE_IGNORE_SERVER_IO_ERROR: 1
@@ -105,17 +115,22 @@ jobs:
OPENVINO_GENAI_REPO: '/__w/openvino/openvino/openvino.genai'
BUILD_DIR: '/__w/openvino/openvino/build'
ANDROID_TOOLS: '/deps/android_tools'
- ANDROID_NDK_HOME: '/deps/android_tools/ndk/26.1.10909125'
- ANDROID_SDK_VERSION: 29
- ANDROID_ABI_CONFIG: x86_64
- SCCACHE_AZURE_KEY_PREFIX: android_x64
+ ANDROID_NDK_HOME: '/deps/android_tools/ndk/28.2.13676358'
+ ANDROID_SDK_VERSION: 35
+ ANDROID_ABI_CONFIG: ${{ matrix.android_abi }}
+ TBB_BRANCH: 'v2022.2.0'
+ TBB_SRC: "/__w/openvino/openvino/build/onetbb-src"
+ TBB_BUILD: "/__w/openvino/openvino/build/onetbb-build"
+ TBB_INSTALL: "/__w/openvino/openvino/build/onetbb-install"
+ TBB_CMAKE_DIR: "/__w/openvino/openvino/build/onetbb-install/lib/cmake/TBB"
+ SCCACHE_AZURE_KEY_PREFIX: android_${{ matrix.arch }}
steps:
- name: Clone OpenVINO
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
timeout-minutes: 15
with:
path: 'openvino'
- submodules: 'true'
+ submodules: 'recursive'
- name: Clone OpenVINO GenAI
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -137,30 +152,68 @@ jobs:
# Build
#
- - name: CMake - configure
+ - name: Clean ccache stats
+ run: ${SCCACHE_PATH} --zero-stats
+
+ - name: Clone OneTBB
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ timeout-minutes: 15
+ with:
+ repository: 'oneapi-src/oneTBB'
+ path: ${{ env.TBB_SRC }}
+ submodules: 'true'
+ ref: ${{ env.TBB_BRANCH }}
+
+ - name: Configure OneTBB CMake project
run: |
cmake \
- -DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
+ -G '${{ env.CMAKE_GENERATOR }}' \
+ -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
+ -DCMAKE_INSTALL_PREFIX=${{ env.TBB_INSTALL }} \
+ -DCMAKE_TOOLCHAIN_FILE=${{ env.ANDROID_NDK_HOME }}/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=${{ env.ANDROID_ABI_CONFIG }} \
+ -DANDROID_PLATFORM=${{ env.ANDROID_SDK_VERSION }} \
-DANDROID_STL=c++_shared \
+ -DTBB_TEST=OFF \
+ -DTBB_STRICT=OFF \
+ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--undefined-version" \
+ -DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
+ -DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
+ -S ${TBB_SRC} \
+ -B ${TBB_BUILD}
+
+ - name: Build OneTBB project
+ run: cmake --build ${TBB_BUILD} --parallel $(nproc)
+
+ - name: Install OneTBB project
+ run: cmake --install ${TBB_BUILD}
+
+ - name: CMake - configure OpenVINO
+ run: |
+ cmake \
+ -G '${{ env.CMAKE_GENERATOR }}' \
+ -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
+ -DCMAKE_TOOLCHAIN_FILE=${{ env.ANDROID_NDK_HOME }}/build/cmake/android.toolchain.cmake \
+ -DANDROID_ABI=${{ env.ANDROID_ABI_CONFIG }} \
-DANDROID_PLATFORM=${{ env.ANDROID_SDK_VERSION }} \
+ -DANDROID_STL=c++_shared \
+ -DENABLE_TESTS=ON \
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \
-DENABLE_STRICT_DEPENDENCIES=OFF \
- -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DENABLE_SYSTEM_TBB=OFF \
+ -DTHREADING=TBB \
+ -DTBB_DIR=${{ env.TBB_CMAKE_DIR }} \
+ -DTBBROOT=${{ env.TBB_INSTALL }} \
+ -DENABLE_FASTER_BUILD=ON \
+ -DOPENVINO_EXTRA_MODULES=${{ env.OPENVINO_GENAI_REPO }} \
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
-DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
-DENABLE_LTO=ON \
-DENABLE_PYTHON=OFF \
- -DENABLE_TESTS=ON \
- -DENABLE_FASTER_BUILD=ON \
- -DOPENVINO_EXTRA_MODULES=${{ env.OPENVINO_GENAI_REPO }} \
-S ${OPENVINO_REPO} \
-B ${BUILD_DIR}
- - name: Clean ccache stats
- run: ${SCCACHE_PATH} --zero-stats
-
- - name: Cmake - build
+ - name: CMake - build OpenVINO
run: cmake --build ${BUILD_DIR} --parallel $(nproc)
- name: Show ccache stats
@@ -173,7 +226,7 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: always()
with:
- name: build_logs
+ name: build_logs_${{ matrix.arch }}
path: ${{ env.SCCACHE_ERROR_LOG }}
if-no-files-found: 'ignore'
diff --git a/.github/workflows/android_arm64.yml b/.github/workflows/android_arm64.yml
deleted file mode 100644
index e43a569c548..00000000000
--- a/.github/workflows/android_arm64.yml
+++ /dev/null
@@ -1,217 +0,0 @@
-name: Android ARM64 with vcpkg
-on:
- workflow_dispatch:
- inputs:
- target-branch:
- description: 'Target branch for the build; taken from event context by default'
- type: string
- required: false
- pull_request:
- merge_group:
- push:
- branches:
- # - master
- - 'releases/**'
-
-concurrency:
- # github.ref is not unique in post-commit
- group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-android-arm64-vcpkg
- cancel-in-progress: true
-
-permissions: read-all
-
-jobs:
- Smart_CI:
- runs-on: ubuntu-latest
- outputs:
- affected_components: "${{ steps.smart_ci.outputs.affected_components }}"
- changed_components: "${{ steps.smart_ci.outputs.changed_components }}"
- skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"
- steps:
- - name: checkout action
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- sparse-checkout: .github/actions/smart-ci
-
- - name: Get affected components
- id: smart_ci
- uses: ./.github/actions/smart-ci
- with:
- repository: ${{ github.repository }}
- pr: ${{ github.event.number }}
- commit_sha: ${{ github.sha }}
- ref_name: ${{ github.ref_name }}
- component_pattern: "category: (.*)"
- repo_token: ${{ secrets.GITHUB_TOKEN }}
- skip_when_only_listed_labels_set: 'docs'
- skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'
-
- Docker:
- needs: Smart_CI
- runs-on: aks-linux-4-cores-16gb-docker-build
- container:
- image: openvinogithubactions.azurecr.io/docker_build:0.2
- volumes:
- - /mount:/mount
- outputs:
- images: "${{ steps.handle_docker.outputs.images && steps.handle_docker.outputs.images || steps.mock_image.outputs.images }}"
- steps:
- - name: Set mock output images if pipeline should be skipped
- if: ${{ needs.smart_ci.outputs.skip_workflow == 'True' }}
- id: mock_image
- run: echo "images={\"ov_build\":{\"ubuntu_22_04_android\":\"mock\"}}" >> "$GITHUB_OUTPUT"
-
- - name: Checkout
- if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
-
- - uses: ./.github/actions/handle_docker
- if: ${{ needs.smart_ci.outputs.skip_workflow != 'True' }}
- id: handle_docker
- with:
- images: |
- ov_build/ubuntu_22_04_android
- registry: 'openvinogithubactions.azurecr.io'
- dockerfiles_root_dir: '.github/dockerfiles'
- changed_components: ${{ needs.smart_ci.outputs.changed_components }}
-
- Build:
- needs: [Smart_CI, Docker]
- if: "!needs.smart_ci.outputs.skip_workflow"
- timeout-minutes: 150
- defaults:
- run:
- shell: bash
- runs-on: aks-linux-16-cores-32gb
- container:
- image: ${{ fromJSON(needs.docker.outputs.images).ov_build.ubuntu_22_04_android }}
- volumes:
- - /mount:/mount
- options: -e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING
- env:
- DEBIAN_FRONTEND: noninteractive # to prevent apt-get from waiting user input
- CMAKE_GENERATOR: 'Ninja'
- CMAKE_CXX_COMPILER_LAUNCHER: sccache
- CMAKE_C_COMPILER_LAUNCHER: sccache
- SCCACHE_IGNORE_SERVER_IO_ERROR: 1
- SCCACHE_SERVER_PORT: 35555
- SCCACHE_ERROR_LOG: /__w/openvino/sccache_log.txt
- SCCACHE_LOG: warn
- OPENVINO_REPO: '/__w/openvino/openvino/openvino'
- VCPKG_ROOT: '/__w/openvino/openvino/vcpkg'
- BUILD_DIR: '/__w/openvino/openvino/build'
- ANDROID_TOOLS: '/deps/android_tools'
- ANDROID_NDK_HOME: '/deps/android_tools/ndk/26.1.10909125'
- ANDROID_SDK_VERSION: 29
- ANDROID_ABI_CONFIG: arm64-v8a
- VCPKG_TARGET_TRIPLET: arm64-android
- VCPKG_DEFAULT_BINARY_CACHE: '/mount/caches/ccache/android_arm64/vcpkg_cache'
- VCPKG_FORCE_SYSTEM_BINARIES: '1'
- SCCACHE_AZURE_KEY_PREFIX: android_arm64
- steps:
- - name: Clone OpenVINO
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- path: 'openvino'
-
- - name: Get VCPKG version and put it into GitHub ENV
- run: echo VCPKG_VERSION=$(cat ${OPENVINO_REPO}/vcpkg.json | python3 -c "import sys, json; print(json.load(sys.stdin)['builtin-baseline'])") >> $GITHUB_ENV
-
- - name: Init submodules for non vcpkg dependencies
- run: |
- pushd ${OPENVINO_REPO}
- git submodule update --init -- ${OPENVINO_REPO}/src/plugins
- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/zlib
- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/json
- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gtest
- git submodule update --init -- ${OPENVINO_REPO}/thirdparty/gflags
- popd
-
- - name: Clone vcpkg
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- timeout-minutes: 15
- with:
- repository: 'microsoft/vcpkg'
- ref: ${{ env.VCPKG_VERSION }}
- path: 'vcpkg'
- fetch-depth: '0'
-
- #
- # Print system info
- #
-
- - name: System info
- uses: ./openvino/.github/actions/system_info
-
- #
- # Build
- #
-
- - name: Build vcpkg
- run: |
- mkdir -p ${VCPKG_DEFAULT_BINARY_CACHE}
- ${VCPKG_ROOT}/bootstrap-vcpkg.sh
- # patch vcpkg default toolchain to build only Release configuration
- echo "set(VCPKG_BUILD_TYPE release)" >> ${VCPKG_ROOT}/triplets/arm64-android.cmake
-
- - name: CMake - configure
- run: |
- cmake \
- -G '${{ env.CMAKE_GENERATOR }}' \
- -DENABLE_INTEL_GPU=ON \
- -DENABLE_TESTS=ON \
- -DENABLE_SYSTEM_OPENCL=ON \
- -DENABLE_SYSTEM_PROTOBUF=ON \
- -DENABLE_SYSTEM_PUGIXML=ON \
- -DENABLE_SYSTEM_SNAPPY=ON \
- -DENABLE_SYSTEM_TBB=ON \
- -DENABLE_SYSTEM_FLATBUFFERS=ON \
- -DENABLE_FASTER_BUILD=ON \
- -DANDROID_ABI=${{ env.ANDROID_ABI_CONFIG }} \
- -DANDROID_PLATFORM=${{ env.ANDROID_SDK_VERSION }} \
- -DVCPKG_TARGET_TRIPLET=${{ env.VCPKG_TARGET_TRIPLET }} \
- -DVCPKG_HOST_TRIPLET=x64-linux-release \
- -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake \
- -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \
- -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
- -DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \
- -DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \
- -S ${OPENVINO_REPO} \
- -B ${BUILD_DIR}
-
- - name: Clean ccache stats
- run: ${SCCACHE_PATH} --zero-stats
-
- - name: Cmake - build
- run: cmake --build ${BUILD_DIR} --parallel $(nproc)
-
- - name: Show ccache stats
- run: ${SCCACHE_PATH} --show-stats
-
- #
- # Upload build logs
- #
- - name: Upload build logs
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
- if: always()
- with:
- name: build_logs
- path: ${{ env.SCCACHE_ERROR_LOG }}
- if-no-files-found: 'ignore'
-
- Overall_Status:
- name: ci/gha_overall_status_android_arm64
- needs: [Smart_CI, Build]
- if: ${{ always() }}
- runs-on: ubuntu-latest
- steps:
- - name: Check status of all jobs
- if: >-
- ${{
- contains(needs.*.result, 'failure') ||
- contains(needs.*.result, 'cancelled')
- }}
- run: exit 1
diff --git a/.github/workflows/workflows_to_track.txt b/.github/workflows/workflows_to_track.txt
index fb176a614bf..965757c1742 100644
--- a/.github/workflows/workflows_to_track.txt
+++ b/.github/workflows/workflows_to_track.txt
@@ -31,8 +31,8 @@ name: macOS (Python 3.11)
==> ./merge_queue_stub.yml <==
==> ./debian_10_arm.yml <==
name: Debian 10 ARM
-==> ./android_arm64.yml <==
-name: Android ARM64 with vcpkg
+==> ./android.yml <==
+name: Android
==> ./code_style.yml <==
name: Code Style
==> ./manylinux_2014.yml <==
@@ -57,8 +57,6 @@ name: Code snippets
name: Linux (Ubuntu 20.04, Python 3.9)
==> ./linux_riscv.yml <==
name: Linux RISC-V with Conan (Ubuntu 22.04, Python 3.10)
-==> ./android_x64.yml <==
-name: Android x64
==> ./workflow_rerunner.yml <==
name: Rerun Workflow with Known Errors
==> ./linux_sanitizers.yml <==
diff --git a/docs/dev/build_android.md b/docs/dev/build_android.md
index de36b358b4c..f973194b217 100644
--- a/docs/dev/build_android.md
+++ b/docs/dev/build_android.md
@@ -6,8 +6,8 @@ This article describes how to build OpenVINO for Android operating systems.
- [CMake](https://cmake.org/download/) 3.13 or higher
- [SCons](https://scons.org/pages/download.html) 4.6.0 or higher
-- [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools) (this guide has been validated with 30.0.0 release)
-- [Android NDK](https://developer.android.com/ndk/downloads) (this guide has been validated with r26 release)
+- [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools) (this guide has been validated with the 35.0.0 release)
+- [Android NDK](https://developer.android.com/ndk/downloads) (this guide has been validated with r28c release)
## How to build
@@ -21,10 +21,10 @@ This article describes how to build OpenVINO for Android operating systems.
### Download and unpack Android packages
* Download and unpack [Android NDK](https://developer.android.com/ndk/downloads)
```sh
- wget https://dl.google.com/android/repository/android-ndk-r26d-${HOST_OS_TYPE}.zip --directory-prefix $OPV_HOME_DIR
+ wget https://dl.google.com/android/repository/android-ndk-r28c-${HOST_OS_TYPE}.zip --directory-prefix $OPV_HOME_DIR
- unzip $OPV_HOME_DIR/android-ndk-r26d-${HOST_OS_TYPE}.zip -d $OPV_HOME_DIR
- mv $OPV_HOME_DIR/android-ndk-r26d $OPV_HOME_DIR/android-ndk
+ unzip $OPV_HOME_DIR/android-ndk-r28c-${HOST_OS_TYPE}.zip -d $OPV_HOME_DIR
+ mv $OPV_HOME_DIR/android-ndk-r28c $OPV_HOME_DIR/android-ndk
export ANDROID_NDK_PATH=$OPV_HOME_DIR/android-ndk
```
* Download and unpack [Android SDK Platform Tools](https://developer.android.com/tools/releases/platform-tools)
@@ -40,7 +40,7 @@ _For Windows and Mac operating systems, the downloading and unpacking steps are
```sh
# If you have no android devices please set CURRENT_ANDROID_ABI according to your preferences e.g. export CURRENT_ANDROID_ABI=arm64-v8a
export CURRENT_ANDROID_ABI=`$ANDROID_TOOLS_PATH/adb shell getprop ro.product.cpu.abi`
- export CURRENT_ANDROID_PLATFORM=30
+ export CURRENT_ANDROID_PLATFORM=35
export CURRENT_ANDROID_STL=c++_shared
export CURRENT_CMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_PATH/build/cmake/android.toolchain.cmake
```
@@ -48,10 +48,11 @@ _For Windows and Mac operating systems, the downloading and unpacking steps are
* `x86_64` for x64 build
* `armeabi-v7a with NEON` for ARM with NEON support
* `arm64-v8a` for ARM 64 bits
+ * `riscv64` for RISC-V 64 bits (experimental)
* `ANDROID_PLATFORM` specifies the Android API version.
* `ANDROID_STL` indicates that a shared C++ runtime is used.
-### Build and install OneTBB™
+### Build and install OneTBB™ (Not for RISC-V 64 architecture)
To improve the parallelism performance of the OpenVINO™ library using OneTBB, it is required to separately build OneTBB for a specific version of the Android NDK:
```sh
# Clone OneTBB™ repository
@@ -68,13 +69,18 @@ To improve the parallelism performance of the OpenVINO™ library using OneTBB,
-DANDROID_PLATFORM=$CURRENT_ANDROID_PLATFORM \
-DANDROID_STL=$CURRENT_ANDROID_STL \
-DTBB_TEST=OFF \
- -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--undefined-version"
+ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--undefined-version"
# Build OneTBB™ project
cmake --build $OPV_HOME_DIR/one-tbb-build --parallel
# Install OneTBB™ project
cmake --install $OPV_HOME_DIR/one-tbb-build
```
+### Clone OpenVINO™ GenAI (Optional)
+ ```sh
+ git clone --recursive https://github.com/openvinotoolkit/openvino.genai $OPV_HOME_DIR/openvino.genai
+ ```
+
### Build and install OpenVINO™
```sh
# Clone OpenVINO™ repository
@@ -84,11 +90,14 @@ To improve the parallelism performance of the OpenVINO™ library using OneTBB,
# Configure OpenVINO™ CMake project
cmake -S $OPV_HOME_DIR/openvino \
-B $OPV_HOME_DIR/openvino-build \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$OPV_HOME_DIR/openvino-install \
-DCMAKE_TOOLCHAIN_FILE=$CURRENT_CMAKE_TOOLCHAIN_FILE \
-DANDROID_ABI=$CURRENT_ANDROID_ABI \
-DANDROID_PLATFORM=$CURRENT_ANDROID_PLATFORM \
-DANDROID_STL=$CURRENT_ANDROID_STL \
+ -DOPENVINO_EXTRA_MODULES=$OPV_HOME_DIR/openvino.genai \
+ -DTBBROOT=$OPV_HOME_DIR/one-tbb-install \
-DTBB_DIR=$OPV_HOME_DIR/one-tbb-install/lib/cmake/TBB
# Build OpenVINO™ project
cmake --build $OPV_HOME_DIR/openvino-build --parallel
diff --git a/docs/dev/ci/github_actions/overview.md b/docs/dev/ci/github_actions/overview.md
index 9951e7f5952..9c1627c2d3b 100644
--- a/docs/dev/ci/github_actions/overview.md
+++ b/docs/dev/ci/github_actions/overview.md
@@ -39,7 +39,7 @@ The three main ones, providing most coverage for different operating systems, ar
* [macOS](../../../../.github/workflows/mac.yml)
Additionally, several supporting workflows build and test OpenVINO for other operating systems and processor architectures:
-* [Android ARM64](../../../../.github/workflows/android_arm64.yml)
+* [Android](../../../../.github/workflows/android.yml)
* [Fedora](../../../../.github/workflows/fedora_29.yml)
* [Linux Conditional Compilation](../../../../.github/workflows/linux_conditional_compilation.yml)
* [Linux RISC-V](../../../../.github/workflows/linux_riscv.yml)