forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding github action for building ovep
- Loading branch information
1 parent
d495e6c
commit 01d7319
Showing
1 changed file
with
40 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
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 ../onnxruntime | ||
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 |