From 8b24d4358c5a646cda32285c9bef7c01fd284a55 Mon Sep 17 00:00:00 2001 From: TejalKhade28 Date: Fri, 13 Sep 2024 03:18:08 -0700 Subject: [PATCH] Adding github action for building ovep --- .github/workflows/build_ovep.yml | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build_ovep.yml diff --git a/.github/workflows/build_ovep.yml b/.github/workflows/build_ovep.yml new file mode 100644 index 0000000000000..d0111bf751bf9 --- /dev/null +++ b/.github/workflows/build_ovep.yml @@ -0,0 +1,43 @@ +name : Build_OVEP + +on: + push: + branches: + - '**' # Triggers on push to any branch + pull_request: + branches: + - '**' # Triggers on a PR to any branch + +jobs: + build: + + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 #checkout to your repository + + - name: Set up Python + uses: actions/setup-python@v4 # Use the setup-python action + with: + python-version: '3.10' + + - name: Download OepnVINO + run: | + curl -L -o openvino.zip https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.3/windows/w_openvino_toolkit_windows_2024.3.0.16041.1e3b88e4e3f_x86_64.zip + Expand-Archive -Path openvino.zip -DestinationPath openvino_folder + + - name: Navigate and Run OpenVINO Build + run: | + cd openvino_folder + cd w_openvino_toolkit_windows_2024.3.0.16041.1e3b88e4e3f_x86_64 + dir + echo %CD% + call setupvars.bat + shell: cmd + + - name: Build Openvino Execution Proivder + run: | + cd ../ + cd onnxruntime + dir + call build.bat --build --update --config Release --cmake_generator "Visual Studio 17 2022" --use_openvino --build_wheel --build_shared_lib --build_nuget --skip_tests --parallel --compile_no_warning_as_error + shell: cmd