forked from openvinotoolkit/openvino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/cpu_random_uniform_alignment
- Loading branch information
Showing
680 changed files
with
21,652 additions
and
19,250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pr-26067 | ||
pr-26086 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
FROM openvinogithubactions.azurecr.io/dockerio/library/debian:10.13 | ||
|
||
USER root | ||
|
||
# APT configuration | ||
RUN echo 'Acquire::Retries "10";' > /etc/apt/apt.conf && \ | ||
echo 'APT::Get::Assume-Yes "true";' >> /etc/apt/apt.conf && \ | ||
echo 'APT::Get::Fix-Broken "true";' >> /etc/apt/apt.conf && \ | ||
echo 'APT::Get::no-install-recommends "true";' >> /etc/apt/apt.conf | ||
|
||
ENV DEBIAN_FRONTEND="noninteractive" \ | ||
TZ="Europe/London" | ||
|
||
RUN apt-get update && \ | ||
apt-get install \ | ||
software-properties-common \ | ||
curl \ | ||
git \ | ||
gpg-agent \ | ||
tzdata \ | ||
# Pythons \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
python3-venv \ | ||
python3-distutils \ | ||
libhdf5-dev \ | ||
# For building Python from source | ||
build-essential \ | ||
libffi-dev \ | ||
libgdbm-dev \ | ||
libc6-dev \ | ||
libssl-dev \ | ||
zlib1g-dev \ | ||
libbz2-dev \ | ||
libreadline-dev \ | ||
libsqlite3-dev \ | ||
libncurses5-dev \ | ||
libncursesw5-dev \ | ||
xz-utils \ | ||
tk-dev \ | ||
libxml2-dev \ | ||
libxmlsec1-dev \ | ||
liblzma-dev \ | ||
wget \ | ||
# Compilers | ||
gcc-arm-linux-gnueabihf \ | ||
g++-arm-linux-gnueabihf \ | ||
&& \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install build dependencies | ||
ADD install_build_dependencies.sh /install_build_dependencies.sh | ||
RUN chmod +x /install_build_dependencies.sh && \ | ||
/install_build_dependencies.sh && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install sscache | ||
ARG SCCACHE_VERSION="v0.7.5" | ||
ENV SCCACHE_HOME="/opt/sccache" \ | ||
SCCACHE_PATH="/opt/sccache/sccache" | ||
|
||
RUN mkdir ${SCCACHE_HOME} && cd ${SCCACHE_HOME} && \ | ||
SCCACHE_ARCHIVE="sccache-${SCCACHE_VERSION}-aarch64-unknown-linux-musl.tar.gz" && \ | ||
curl -SLO https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/${SCCACHE_ARCHIVE} && \ | ||
tar -xzf ${SCCACHE_ARCHIVE} --strip-components=1 && rm ${SCCACHE_ARCHIVE} | ||
|
||
ENV PATH="$SCCACHE_HOME:$PATH" | ||
|
||
# Setup Python | ||
RUN wget https://www.python.org/ftp/python/3.11.9/Python-3.11.9.tar.xz | ||
|
||
RUN tar -xf Python-3.11.9.tar.xz && \ | ||
cd Python-3.11.9 && \ | ||
./configure --enable-optimizations && \ | ||
make -j 8 && \ | ||
make altinstall | ||
|
||
# Setup pip | ||
ENV PIP_VERSION="24.0" | ||
RUN python3 -m pip install --upgrade pip==24.0 | ||
RUN python3.11 -m pip install --upgrade pip==24.0 | ||
|
||
# Use Python 3.11 as default | ||
# Using venv here because other methods to switch the default Python break both system and wheels build | ||
RUN python3.11 -m venv venv | ||
ENV PATH="/venv/bin:$SCCACHE_HOME:$PATH" | ||
|
||
ENV PIP_CACHE_DIR=/mount/caches/pip/linux/${PIP_VERSION} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
name: Android x64 | ||
on: | ||
workflow_dispatch: | ||
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-x64 | ||
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
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: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- uses: ./.github/actions/handle_docker | ||
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] | ||
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_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' | ||
BUILD_DIR: '/__w/openvino/openvino/build' | ||
ANDROID_TOOLS: '/deps/android_tools' | ||
ANDROID_NDK_HOME: '/deps/android_tools/ndk-bundle' | ||
ANDROID_SDK_VERSION: 29 | ||
ANDROID_ABI_CONFIG: x86_64 | ||
SCCACHE_AZURE_KEY_PREFIX: android_x64 | ||
if: "!needs.smart_ci.outputs.skip_workflow" | ||
steps: | ||
- name: Clone OpenVINO | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
path: 'openvino' | ||
submodules: 'true' | ||
|
||
# | ||
# Print system info | ||
# | ||
|
||
- name: System info | ||
uses: ./openvino/.github/actions/system_info | ||
|
||
# | ||
# Build | ||
# | ||
|
||
- name: CMake - configure | ||
run: | | ||
cmake \ | ||
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake \ | ||
-DANDROID_ABI=${{ env.ANDROID_ABI_CONFIG }} \ | ||
-DANDROID_STL=c++_shared \ | ||
-DANDROID_PLATFORM=${{ env.ANDROID_SDK_VERSION }} \ | ||
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_STRICT_DEPENDENCIES=OFF \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=${{ env.CMAKE_CXX_COMPILER_LAUNCHER }} \ | ||
-DCMAKE_C_COMPILER_LAUNCHER=${{ env.CMAKE_C_COMPILER_LAUNCHER }} \ | ||
-DENABLE_LTO=ON \ | ||
-DENABLE_PYTHON=OFF \ | ||
-S ${OPENVINO_REPO} \ | ||
-B ${BUILD_DIR} | ||
- name: Clean ccache stats | ||
run: ${SCCACHE_PATH} --zero-stats | ||
|
||
- name: Cmake - build | ||
run: cmake --build ${BUILD_DIR} --parallel | ||
|
||
- name: Show ccache stats | ||
run: ${SCCACHE_PATH} --show-stats | ||
|
||
# | ||
# Upload build logs | ||
# | ||
- name: Upload build logs | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
if: always() | ||
with: | ||
name: build_logs | ||
path: ${{ env.SCCACHE_ERROR_LOG }} | ||
if-no-files-found: 'ignore' | ||
|
||
Overall_Status: | ||
name: ci/gha_overall_status_android | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.