-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] [GHA] Introduce Debian 10 ARM (#26156)
### Tickets: - *148717*
- Loading branch information
Showing
8 changed files
with
276 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pr-26067 | ||
pr-26156 |
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} |
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,111 @@ | ||
name: Debian 10 ARM | ||
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 }}-debian-10-arm | ||
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/*' | ||
|
||
- name: Show affected components | ||
run: | | ||
echo "${{ toJSON(steps.smart_ci.outputs.affected_components) }}" | ||
shell: bash | ||
|
||
Docker: | ||
needs: Smart_CI | ||
runs-on: aks-linux-16-cores-arm-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/debian_10_arm | ||
registry: 'openvinogithubactions.azurecr.io' | ||
dockerfiles_root_dir: '.github/dockerfiles' | ||
changed_components: ${{ needs.smart_ci.outputs.changed_components }} | ||
|
||
Build: | ||
needs: [Docker, Smart_CI] | ||
if: "!needs.smart_ci.outputs.skip_workflow" | ||
uses: ./.github/workflows/job_build_linux.yml | ||
with: | ||
runner: 'aks-linux-16-cores-arm' | ||
container: '{"image": "${{ fromJSON(needs.docker.outputs.images).ov_build.debian_10_arm }}", "volumes": ["/mount:/mount"], "options": "-e SCCACHE_AZURE_BLOB_CONTAINER -e SCCACHE_AZURE_CONNECTION_STRING"}' | ||
affected-components: ${{ needs.smart_ci.outputs.affected_components }} | ||
event-name: ${{ github.event_name }} | ||
os: 'debian_10' | ||
arch: 'arm' | ||
build-js: false | ||
build-debian-packages: false | ||
build-contrib: false | ||
cmake-options: |- | ||
-DCMAKE_TOOLCHAIN_FILE=${OPENVINO_REPO}/cmake/arm.toolchain.cmake \ | ||
-DTHREADS_PTHREAD_ARG="-pthread" \ | ||
-DCMAKE_COMPILE_WARNING_AS_ERROR=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DENABLE_STRICT_DEPENDENCIES=OFF \ | ||
-DENABLE_CPPLINT=OFF \ | ||
-DENABLE_NCC_STYLE=OFF \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DENABLE_CONFORMANCE_PGQL=ON \ | ||
-DENABLE_LTO=ON \ | ||
-DENABLE_TESTS=ON \ | ||
-DENABLE_PYTHON=OFF | ||
Overall_Status: | ||
name: ci/gha_overall_status_debian_10_arm | ||
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
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