fix(transcription): suppress whisper non-speech tokens #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| windows: | |
| name: Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-pc-windows-msvc | |
| - name: Confirm Windows build tools | |
| shell: pwsh | |
| run: | | |
| node --version | |
| npm --version | |
| rustc -vV | |
| cargo --version | |
| cmake --version | |
| $vswhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" | |
| if (-not (Test-Path $vswhere)) { | |
| throw "vswhere.exe was not found; Visual Studio Build Tools are required." | |
| } | |
| $vsInstall = & $vswhere -latest -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath | |
| if (-not $vsInstall) { | |
| throw "Visual Studio Desktop development with C++ tools were not found." | |
| } | |
| Write-Host "Visual Studio Build Tools: $vsInstall" | |
| $ninja = Get-Command ninja -ErrorAction SilentlyContinue | |
| if ($ninja) { | |
| ninja --version | |
| } else { | |
| Write-Host "Ninja is not installed; the current Windows build does not require it." | |
| } | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build Windows sidecar | |
| run: npm run build:core:windows | |
| - name: Verify Tauri Windows sidecar exists | |
| shell: pwsh | |
| run: | | |
| $sidecar = "src-tauri/binaries/parrot-core-cpu-x86_64-pc-windows-msvc.exe" | |
| if (-not (Test-Path $sidecar)) { | |
| throw "Missing Tauri sidecar: $sidecar" | |
| } | |
| - name: Run Rust workspace tests | |
| run: cargo test --workspace | |
| - name: Run Windows sidecar tests | |
| run: cargo test -p parrot-core --manifest-path native-core/windows/Cargo.toml | |
| - name: Build frontend | |
| run: npm run build:ui |