We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97ed6f5 commit f437333Copy full SHA for f437333
.github/workflows/release.yml
@@ -32,6 +32,7 @@ jobs:
32
go-version-file: go.mod
33
34
- name: Prepare dist
35
+ shell: bash
36
run: mkdir -p dist
37
38
- name: Download ONNX Runtime (windows only)
@@ -42,7 +43,9 @@ jobs:
42
43
$url="https://github.com/microsoft/onnxruntime/releases/download/v$ver/onnxruntime-win-x64-$ver.zip"
44
Invoke-WebRequest -Uri $url -OutFile ort.zip
45
Expand-Archive ort.zip -DestinationPath ort
- Copy-Item "ort\onnxruntime-win-x64-$ver\onnxruntime.dll" dist\onnxruntime.dll
46
+ $dll = Get-ChildItem -Recurse -Filter onnxruntime.dll -Path ort | Select-Object -First 1
47
+ if (-not $dll) { Write-Error "onnxruntime.dll not found in archive"; exit 1 }
48
+ Copy-Item $dll.FullName dist\onnxruntime.dll
49
50
- name: Build
51
shell: bash
0 commit comments