Skip to content

Commit f437333

Browse files
committed
cicd
1 parent 97ed6f5 commit f437333

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
go-version-file: go.mod
3333

3434
- name: Prepare dist
35+
shell: bash
3536
run: mkdir -p dist
3637

3738
- name: Download ONNX Runtime (windows only)
@@ -42,7 +43,9 @@ jobs:
4243
$url="https://github.com/microsoft/onnxruntime/releases/download/v$ver/onnxruntime-win-x64-$ver.zip"
4344
Invoke-WebRequest -Uri $url -OutFile ort.zip
4445
Expand-Archive ort.zip -DestinationPath ort
45-
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
4649
4750
- name: Build
4851
shell: bash

0 commit comments

Comments
 (0)