OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[CI] [GHA] [ANDROID] Align build options between GHA and Jenkins, update ndk to 29, save artefacts to a shared drive (#33018)
Andrei Kashchikhin0eb9180da044
diff --git a/.github/actions/common/constants.py b/.github/actions/common/constants.pyindex f3e08097a5d..d3585e44e80 100644--- a/.github/actions/common/constants.py+++ b/.github/actions/common/constants.py@@ -23,6 +23,8 @@ productTypes = ('public_manylinux_2_28_x86_64_release','public_macos_x86_64_release','public_macos_arm64_release',+ 'public_android_x64_release',+ 'public_android_arm64_release',)ProductType = Enum('ProductType', {t.upper(): t for t in productTypes})@@ -41,6 +43,8 @@ platformKeys = ('macos_12_6_x86_64','macos_14_7_arm64','windows_x86_64',+ 'android_x64',+ 'android_arm64',)PlatformKey = Enum('PlatformKey', {t.upper(): t for t in platformKeys})@@ -56,4 +60,6 @@ PlatformMapping = {PlatformKey.MACOS_14_7_ARM64: ProductType.PUBLIC_MACOS_ARM64_RELEASE,PlatformKey.CENTOS7_X86_64: ProductType.PUBLIC_MANYLINUX2014_X86_64_RELEASE,PlatformKey.ALMALINUX8_X86_64: ProductType.PUBLIC_MANYLINUX_2_28_X86_64_RELEASE,+ PlatformKey.ANDROID_X64: ProductType.PUBLIC_ANDROID_X64_RELEASE,+ PlatformKey.ANDROID_ARM64: ProductType.PUBLIC_ANDROID_ARM64_RELEASE,}diff --git a/.github/dockerfiles/docker_tag b/.github/dockerfiles/docker_tagindex ab1c39d1fed..2c748d03365 100644--- a/.github/dockerfiles/docker_tag+++ b/.github/dockerfiles/docker_tag@@ -1 +1 @@-pr-33047+pr-33018diff --git a/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile b/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfileindex 04c90511543..ff86619ab03 100644--- a/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile+++ b/.github/dockerfiles/ov_build/ubuntu_22_04_android/Dockerfile@@ -17,6 +17,7 @@ RUN apt update && \add-apt-repository --yes --no-update ppa:git-core/ppa && \apt update && \apt install \+ pigz \scons \wget \ninja-build \@@ -47,10 +48,10 @@ ENV PATH="$SCCACHE_HOME:$PATH"# Install Android SDK, NDK and ToolsENV ANDROID_TOOLS /deps/android_tools-ENV ANDROID_NDK_HOME /deps/android_tools/ndk/28.2.13676358+ENV ANDROID_NDK_HOME /deps/android_tools/ndk/29.0.14206865RUN mkdir -p ${ANDROID_NDK_HOME}ENV ANDROID_SDK_VERSION 35RUN 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}"+RUN echo "yes" | ./cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_TOOLS} --install "ndk;29.0.14206865" "platform-tools" "platforms;android-${ANDROID_SDK_VERSION}"diff --git a/.github/workflows/android.yml b/.github/workflows/android.ymlindex f29c45be045..a21356daa38 100644--- a/.github/workflows/android.yml+++ b/.github/workflows/android.yml@@ -94,6 +94,7 @@ jobs:shell: bashruns-on: aks-linux-16-cores-32gbstrategy:+ fail-fast: falsematrix:include:- arch: arm64@@ -124,7 +125,7 @@ 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/28.2.13676358'+ ANDROID_NDK_HOME: '/deps/android_tools/ndk/29.0.14206865'ANDROID_SDK_VERSION: 35ANDROID_ABI_CONFIG: ${{ matrix.android_abi }}TBB_BRANCH: 'v2022.2.0'@@ -133,6 +134,9 @@ jobs: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 }}+ ARTIFACTS_SHARE: "/mount/build-artifacts"+ MANIFEST_PATH: '${{ github.workspace }}/openvino/manifest.yml'+ PRODUCT_TYPE: public_android_${{ matrix.arch }}_releasesteps:- name: Clone OpenVINOuses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2@@ -150,6 +154,18 @@ jobs:submodules: 'true'ref: ${{ env.TARGET_BRANCH }}+ - name: Generate product manifest and set CI_BUILD_NUMBER & CI_BUILD_DEV_TAG+ id: create_manifest+ uses: ./openvino/.github/actions/create_manifest+ with:+ repos: |+ ${{ env.OPENVINO_REPO }}+ product_type: ${{ env.PRODUCT_TYPE }}+ target_arch: ${{ matrix.arch }}+ build_type: 'release'+ save_to: ${{ env.MANIFEST_PATH }}+ trigger_repo_branch: ${{ inputs.target-branch }}+## Print system info#@@ -207,6 +223,7 @@ jobs:-DANDROID_PLATFORM=${{ env.ANDROID_SDK_VERSION }} \-DANDROID_STL=c++_shared \-DENABLE_TESTS=ON \+ -DCPACK_ARCHIVE_COMPONENT_INSTALL=OFF \-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \-DENABLE_STRICT_DEPENDENCIES=OFF \-DENABLE_SYSTEM_TBB=OFF \@@ -218,8 +235,13 @@ jobs:-DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \-DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \-DENABLE_LTO=ON \+ -DENABLE_INTEL_CPU=ON \+ -DENABLE_INTEL_GPU=ON \+ -DENABLE_INTEL_NPU=ON \-DENABLE_TEMPLATE=ON \-DENABLE_PYTHON=OFF \+ -DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,max-page-size=16384" \+ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,max-page-size=16384" \-S ${OPENVINO_REPO} \-B ${BUILD_DIR}@@ -265,6 +287,15 @@ jobs:# Add TBB and libc++ shared to runtime packagefind ${TBB_INSTALL}/lib -name "*.so*" -type f -exec cp {} ${INSTALL_DIR}/lib/ \; 2>/dev/null || echo "No .so files in TBB_INSTALL/lib"cp "${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/${{ env.ANDROID_ABI_CONFIG }}-linux-android/libc++_shared.so" ${INSTALL_DIR}/lib/ || echo "libc++_shared.so not found"++ - name: Pack openvino_package+ run: tar -cvf - * | pigz > ${BUILD_DIR}/openvino_package.tar.gz+ working-directory: ${{ env.INSTALL_DIR }}++ - name: Pack openvino_tests+ run: tar -cvf - * | pigz > ${BUILD_DIR}/openvino_tests.tar.gz+ working-directory: ${{ env.INSTALL_TEST_DIR }}+- name: Upload CPU test binariesuses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0with:@@ -278,6 +309,19 @@ jobs:name: ov_android_package_${{ matrix.arch }}path: ${{ env.INSTALL_DIR }}/if-no-files-found: 'error'++ - name: Store artifacts to a shared drive+ id: store_artifacts+ if: ${{ github.event_name != 'merge_group' }}+ uses: ./openvino/.github/actions/store_artifacts+ with:+ artifacts: |+ ${{ env.BUILD_DIR }}/openvino_package.tar.gz+ ${{ env.BUILD_DIR }}/openvino_tests.tar.gz+ ${{ env.MANIFEST_PATH }}+ storage_dir: ${{ env.PRODUCT_TYPE }}+ storage_root: ${{ env.ARTIFACTS_SHARE }}+ branch_name: ${{ inputs.target-branch }}CXX_Unit_Tests:needs: [Smart_CI, Docker, Build]