A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
ci(windows): drop an incomplete sherpa-onnx prebuilt cache before building
Marcelito62f1986e472f
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.ymlindex b53d4ba..1146248 100644--- a/.github/workflows/windows.yml+++ b/.github/workflows/windows.yml@@ -33,6 +33,20 @@ jobs:with:workspaces: apps/desktop/src-tauri+ # `rust-cache` hashes every Cargo.toml, so any dependency change restores an older cache+ # by prefix, and sherpa-onnx-sys skips its download when `target/sherpa-onnx-prebuilt`+ # exists even without the library. Drop an incomplete tree so it fetches it again.+ - name: Drop an incomplete sherpa-onnx prebuilt cache+ shell: pwsh+ run: |+ $root = Join-Path 'apps/desktop/src-tauri/target' 'sherpa-onnx-prebuilt'+ if (-not (Test-Path $root)) { exit 0 }+ $lib = Get-ChildItem -Path $root -Recurse -File -Include 'sherpa-onnx-c-api.lib', 'libsherpa-onnx-c-api.a'+ if (-not $lib) {+ Remove-Item -Recurse -Force $root+ Write-Output 'removed an incomplete sherpa-onnx prebuilt cache'+ }+# `tauri.conf.json` points `frontendDist` at the built UI. A debug build does not embed it,# but the folder has to exist, and building the UI here would add the whole pnpm install.- name: UI folder for the build script