mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
* feat: Windows beta with streaming dictation, Hold/Toggle shortcut mode, and release pipeline Ports the windows-shell branch onto main, adds a GPU streaming finish for Parakeet Unified English with a whole-clip fallback, a cross-platform Hold/Toggle shortcut mode, x64 and ARM64 Windows CI and release feeds, and the website Windows download. * copy: Enabled/Disabled status on Linux and in the shared Activity labels * ci: install SPIRV-Headers for the x64 Vulkan build and gate the Windows-only device query * refactor: one implementation per concept across macOS, Linux, and Windows The Windows port carried its own copies of modules main already has. Each concept now has one implementation: - UI: Windows uses main's design system (design_tokens, desktop_ui, text_input, desktop_transcription_picker types) instead of a Fluent copy. Windows-only bits are small cfg additions: Segoe Fluent Icons for Icon, Windows text-editing key bindings, fixed-height and read-only text inputs, and the shared slider_track component. windows_ui keeps the window chrome and the anchored dropdowns, now drawn with menu/menu_item. - Windows chrome: the sidebar runs the full window height as on macOS. The caption row is split: the brand sits over the sidebar, the window buttons over the content, and both halves stay OS drag regions. - Commands: Windows uses main's commands, command_grammar, context, keys, and personal_commands. The SDK provisioner accepts the embedded TypeScript src layout; Windows execute() opens URLs and paths with ShellExecuteW. - OpenCode: dictation_processor is the one client and ordered policy (corrections, rewrite, transformations) on macOS and Windows. Windows keeps its opencode2 api CLI transport in a cfg'd submodule; the ranked catalog, prompts, Voice Action generation, and the transformation stage are shared. - desktop_activity is shared; the Windows Settings contract is windows_desktop_host, without #[path] aliases. - self_update is the signed-feed core for both the Linux and Windows updaters. - Windows copy follows the design system: sentence case and "Hex". * chore(windows): flat app icon that stays crisp at taskbar sizes * chore: mark the Windows-only screens to consolidate with app_window after #138 * fix(linux): wait for partial X11 grabs to be released before reporting a conflict
101 lines
4.1 KiB
YAML
101 lines
4.1 KiB
YAML
name: Check Windows
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: check-windows-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
x64:
|
|
name: x64 (Vulkan)
|
|
runs-on: windows-latest
|
|
timeout-minutes: 90
|
|
env:
|
|
# Portable CPU kernels: without this, ggml tunes to the runner's CPU.
|
|
TRANSCRIBE_CMAKE_ARGS: -DGGML_NATIVE=OFF
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: clippy, rustfmt
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Install the Vulkan SDK
|
|
uses: humbletim/install-vulkan-sdk@v1.2
|
|
with:
|
|
version: 1.4.309.0
|
|
cache: true
|
|
- name: Install SPIRV-Headers for the Vulkan backend
|
|
shell: pwsh
|
|
run: |
|
|
vcpkg install spirv-headers:x64-windows
|
|
if ($LASTEXITCODE -ne 0) { throw "vcpkg install spirv-headers failed" }
|
|
$prefix = "$env:VCPKG_INSTALLATION_ROOT/installed/x64-windows" -replace '\\','/'
|
|
$combined = if ($env:CMAKE_PREFIX_PATH) { "$prefix;$env:CMAKE_PREFIX_PATH" } else { $prefix }
|
|
Add-Content $env:GITHUB_ENV "CMAKE_PREFIX_PATH=$combined"
|
|
- name: Locate the GPUI shader compiler
|
|
shell: pwsh
|
|
run: |
|
|
$fxc = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin" -Recurse -Filter fxc.exe -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.FullName -match '\\x64\\' } |
|
|
Sort-Object FullName -Descending |
|
|
Select-Object -First 1
|
|
if (-not $fxc) { throw "fxc.exe was not found in the Windows SDK" }
|
|
"GPUI_FXC_PATH=$($fxc.FullName)" | Out-File -FilePath $env:GITHUB_ENV -Append
|
|
- run: cargo fmt --check
|
|
- run: cargo clippy --release --all-targets -- -D warnings
|
|
- run: cargo test --release
|
|
- run: cargo build --locked --release
|
|
- name: Check the executable needs no Visual C++ Redistributable
|
|
shell: pwsh
|
|
run: |
|
|
$dumpbin = Get-ChildItem "${env:ProgramFiles}\Microsoft Visual Studio" -Recurse -Filter dumpbin.exe -ErrorAction SilentlyContinue |
|
|
Where-Object { $_.FullName -match 'Hostx64\\x64' } | Select-Object -First 1
|
|
$imports = & $dumpbin.FullName /dependents target\release\voice-control.exe
|
|
$redist = $imports | Select-String -Pattern 'VCRUNTIME|MSVCP|vcomp'
|
|
if ($redist) { throw "hex.exe imports Visual C++ runtime DLLs: $redist" }
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hex-windows-x86_64
|
|
path: target/release/voice-control.exe
|
|
|
|
arm64:
|
|
name: ARM64 (CPU)
|
|
runs-on: windows-11-arm
|
|
timeout-minutes: 90
|
|
env:
|
|
# ggml's ARM CPU backend refuses MSVC, so the native core builds with
|
|
# clang-cl through Ninja (the cmake crate takes the compiler from CC/CXX).
|
|
# clang-cl's /openmp needs an LLVM OpenMP runtime, and ggml's own
|
|
# threadpool is correct under LLVM codegen, so OpenMP stays off.
|
|
CC: clang-cl
|
|
CXX: clang-cl
|
|
CMAKE_C_COMPILER: clang-cl
|
|
CMAKE_CXX_COMPILER: clang-cl
|
|
CMAKE_C_COMPILER_TARGET: aarch64-pc-windows-msvc
|
|
CMAKE_CXX_COMPILER_TARGET: aarch64-pc-windows-msvc
|
|
CMAKE_GENERATOR: Ninja
|
|
CL: /EHsc
|
|
TRANSCRIBE_CMAKE_ARGS: -DGGML_NATIVE=OFF -DGGML_OPENMP=OFF
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Locate the GPUI shader compiler
|
|
shell: pwsh
|
|
run: |
|
|
$fxc = Get-ChildItem "${env:ProgramFiles(x86)}\Windows Kits\10\bin" -Recurse -Filter fxc.exe -ErrorAction SilentlyContinue |
|
|
Sort-Object FullName -Descending |
|
|
Select-Object -First 1
|
|
if (-not $fxc) { throw "fxc.exe was not found in the Windows SDK" }
|
|
"GPUI_FXC_PATH=$($fxc.FullName)" | Out-File -FilePath $env:GITHUB_ENV -Append
|
|
- run: cargo test --release
|
|
- run: cargo build --locked --release
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: hex-windows-aarch64
|
|
path: target/release/voice-control.exe
|