From 55be208cb882c9629f418974f94977cf46f4ba42 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Thu, 18 Jan 2024 22:01:15 -0800 Subject: [PATCH] Update Unzip Onnxruntime --- .github/workflows/win-cpu-build.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/win-cpu-build.yml b/.github/workflows/win-cpu-build.yml index 5115a2616..ab6334254 100644 --- a/.github/workflows/win-cpu-build.yml +++ b/.github/workflows/win-cpu-build.yml @@ -9,6 +9,11 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 + - name: set up Visual Studio 2022 + uses: microsoft/setup-msbuild@v1.1 + with: + vs-version: '17.5' + cmake-version: '3.26' - name: Download OnnxRuntime run: | $env:ort_url = "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x64-1.16.3.zip" @@ -22,4 +27,10 @@ jobs: run: | Rename-Item -Path $env:ort_dir -NewName ort Get-ChildItem -Path $env:GITHUB_WORKSPACE -Recurse + - name: Build with CMake + run: | + mkdir build + cd build + cmake -G "Visual Studio 17 2022" -A x64 -DORT_ROOT=$env:GITHUB_WORKSPACE\ort .. + cmake --build . --config Release