Skip to content

Commit

Permalink
Update Unzip Onnxruntime
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jan 19, 2024
1 parent 6562c42 commit 87cba42
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/win-cpu-build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
on: [ workflow_dispatch, push, pull_request]
env:
ort_dir: "onnxruntime-win-x64-1.16.3"
ort_zip: ort_dir + ".zip"
ort_url: "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x64-1.16.3.zip"

jobs:
job:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Download OnnxRuntime
run: |
$url = "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x64-1.16.3.zip"
$output = "onnxruntime-win-x64-1.16.3.zip"
Invoke-WebRequest -Uri $url -OutFile $output
Expand-Archive $output -DestinationPath $env:GITHUB_WORKSPACE
Get-ChildItem -Path $env:GITHUB_WORKSPACE -Recurse
$env:ort_url = "https://github.com/microsoft/onnxruntime/releases/download/v1.16.3/onnxruntime-win-x64-1.16.3.zip"
Invoke-WebRequest -Uri $env:ort_url -OutFile $env:ort_zip
- name: Unzip OnnxRuntime
run: |
Expand-Archive $env:ort_zip -DestinationPath .
Remove-Item -Path $env:ort_zip
Get-ChildItem -Path $env:GITHUB_WORKSPACE

0 comments on commit 87cba42

Please sign in to comment.