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 windows cli openblas setup

louis0301954b11d061869e
diff --git a/.github/workflows/windows-integration-test.yml b/.github/workflows/windows-integration-test.yml
index 5fd7cdc21..c48f34343 100644
--- a/.github/workflows/windows-integration-test.yml
+++ b/.github/workflows/windows-integration-test.yml
@@ -28,6 +28,9 @@ jobs:
with:
node-version: 22
+ - name: Setup Bun
+ uses: oven-sh/setup-bun@v2
+
- name: Install Rust
run: |
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe -OutFile rustup-init.exe
@@ -93,11 +96,19 @@ jobs:
7z x $zipFile -o"apps/screenpipe-app-tauri/src-tauri/" -y
Write-Host "ONNX Runtime extracted to $extractDir"
+ - name: Setup OpenBLAS
+ shell: pwsh
+ run: |
+ cd apps/screenpipe-app-tauri
+ bun scripts/setup_openblas.js
+ "OPENBLAS_PATH=${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/openblas" | Out-File -FilePath $env:GITHUB_ENV -Append
+
- name: Build CLI
env:
RUSTFLAGS: "-C link-arg=/LTCG"
ORT_STRATEGY: system
ORT_LIB_LOCATION: ${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/onnxruntime-win-x64-1.22.0
+ OPENBLAS_PATH: ${{ github.workspace }}/apps/screenpipe-app-tauri/src-tauri/openblas
# Use prebuilt NASM objects on Windows: https://aws.github.io/aws-lc-rs/requirements/windows.html#prebuilt-nasm-objects
AWS_LC_SYS_PREBUILT_NASM: "1"
run: cargo build --release -p screenpipe-engine --bin screenpipe --target x86_64-pc-windows-msvc
@@ -116,6 +127,10 @@ jobs:
if (Test-Path $ortDll) {
Copy-Item $ortDll (Split-Path $exePath) -Force
}
+ $openblasBin = "apps\screenpipe-app-tauri\src-tauri\openblas\bin"
+ if (Test-Path $openblasBin) {
+ Copy-Item "$openblasBin\*.dll" (Split-Path $exePath) -Force
+ }
$process = Start-Process -FilePath $exePath -ArgumentList "--debug" -PassThru -RedirectStandardOutput "screenpipe_output.log" -RedirectStandardError "screenpipe_error.log" -NoNewWindow
Start-Sleep -Seconds 10