Skip to content

Commit 639f425

Browse files
committed
Adding github action for building ovep
1 parent d495e6c commit 639f425

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build_ovep.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name : Build_OVEP
2+
3+
on:
4+
push:
5+
branches:
6+
- '**' # Triggers on push to any branch
7+
pull_request:
8+
branches:
9+
- '**' # Triggers on a PR to any branch
10+
11+
jobs:
12+
build:
13+
14+
runs-on: windows-latest
15+
steps:
16+
- uses: actions/checkout@v4 #checkout to your repository
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4 # Use the setup-python action
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Download OepnVINO
24+
run: |
25+
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
26+
Expand-Archive -Path openvino.zip -DestinationPath openvino_folder
27+
28+
- name: Build Openvino Execution Provider
29+
run: |
30+
cd openvino_folder
31+
cd w_openvino_toolkit_windows_2024.3.0.16041.1e3b88e4e3f_x86_64
32+
dir
33+
echo %CD%
34+
call setupvars.bat
35+
cd ../
36+
cd onnxruntime
37+
dir
38+
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
39+
shell: cmd

0 commit comments

Comments
 (0)