File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed
Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3+ # All rights reserved.
4+ #
5+ # This source code is licensed under the BSD-style license found in the
6+ # LICENSE file in the root directory of this source tree.
7+
8+ set -exu
9+
10+ # shellcheck source=/dev/null
11+ source " $( dirname " ${BASH_SOURCE[0]} " ) /utils.sh"
12+
13+ git clone https://github.com/openvinotoolkit/openvino.git
14+ cd openvino && git checkout releases/2025/1
15+ git submodule update --init --recursive
16+ ./install_build_dependencies.sh
17+ mkdir build && cd build
18+ cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON
19+ make -j$( nproc)
20+
21+ cd ..
22+ cmake --install build --prefix dist
23+
24+ # cd backends/openvino/scripts
25+ # ./openvino_build.sh --enable_python
Original file line number Diff line number Diff line change 1+ name : OpenVINO
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ - release/*
9+ workflow_dispatch :
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }}
13+ cancel-in-progress : true
14+
15+ jobs :
16+ test-openvino-linux :
17+ name : test-openvino-linux
18+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
19+ permissions :
20+ id-token : write
21+ contents : read
22+ strategy :
23+ fail-fast : false
24+ with :
25+ runner : linux.2xlarge
26+ docker-image : executorch-ubuntu-22.04-gcc9
27+ submodules : ' true'
28+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
29+ timeout : 90
30+ script : |
31+ # The generic Linux job chooses to use base env, not the one setup by the image
32+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
33+ conda activate "${CONDA_ENV}"
34+
35+ BUILD_TOOL="cmake"
36+
37+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-openvino.sh
You can’t perform that action at this time.
0 commit comments