Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): correct ORT linking for Windows release builds (#4176 regressions) (#4179)

Louis Beaumont25853cab5dac
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 55411263d..6268087cc 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -480,6 +480,18 @@ jobs:
7z x $zipFile -o"apps/screenpipe-app-tauri/src-tauri/" -y
Write-Host "ONNX Runtime extracted to $extractDir"
Get-ChildItem "$extractDir/lib" | ForEach-Object { Write-Host $_.Name }
+ # ARM64 has no pyke prebuilt and load-dynamic hangs with ort rc.12
+ # (#4173/#4176), so link the MS DLL at build time. ort-sys's `system`
+ # strategy wants the dir that DIRECTLY contains onnxruntime.lib — the
+ # `lib` subdir, not the extract root. Set these ONLY for ARM64; x64
+ # must stay on download-binaries (no ORT_STRATEGY/ORT_LIB_LOCATION).
+ if ($arch -eq 'arm64') {
+ $libDir = (Resolve-Path "$extractDir/lib").Path
+ "ORT_STRATEGY=system" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
+ "ORT_LIB_LOCATION=$libDir" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
+ "$libDir" | Out-File -FilePath $env:GITHUB_PATH -Append -Encoding utf8
+ Write-Host "ARM64: ORT_STRATEGY=system, ORT_LIB_LOCATION=$libDir"
+ }
- name: Install Ninja (ARM64)
if: matrix.os_type == 'windows' && matrix.target == 'aarch64-pc-windows-msvc'
@@ -863,12 +875,10 @@ jobs:
GGML_AVX512_BF16: "OFF"
CMAKE_ARGS: ${{ matrix.target == 'x86_64-pc-windows-msvc' && '-DGGML_NATIVE=OFF -DGGML_AVX512=OFF -DGGML_AVX512_VBMI=OFF -DGGML_AVX512_VNNI=OFF -DGGML_AVX512_BF16=OFF -DCMAKE_C_FLAGS=/arch:AVX2 -DCMAKE_CXX_FLAGS=/arch:AVX2' || '-DGGML_NATIVE=OFF' }}
OPENBLAS_PATH: ${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/openblas
- # ONNX Runtime link strategy. x86_64 pulls the pyke prebuilt
- # (download-binaries). ARM64 has no pyke prebuilt and load-dynamic hangs
- # with ort rc.12 (see #4173), so link the MS onnxruntime-win-arm64 DLL
- # downloaded by the "Download ONNX Runtime" step above.
- ORT_STRATEGY: ${{ matrix.target == 'aarch64-pc-windows-msvc' && 'system' || 'download' }}
- ORT_LIB_LOCATION: ${{ matrix.target == 'aarch64-pc-windows-msvc' && format('{0}/apps/screenpipe-app-tauri/src-tauri/onnxruntime-win-arm64-1.22.0', github.workspace) || '' }}
+ # ORT link strategy is set per-arch in the "Download ONNX Runtime" step
+ # via $GITHUB_ENV (ARM64 → system + ORT_LIB_LOCATION; x64 → unset, uses
+ # download-binaries). Setting them inline here broke x64 because empty
+ # env values are still "set" and ort-sys chokes on them.
run: bunx tauri build --verbose ${{ matrix.tauri-args }}
- name: Sign NSIS installer with SSL.com EV (Windows)