feat: migrate from smart-whisper to custom binding + add cuda support

This commit is contained in:
nchopra 2025-09-19 16:09:08 +05:30
parent 696193eb44
commit 048915da61
52 changed files with 1490 additions and 4353 deletions

View file

@ -4,6 +4,7 @@ on:
push:
branches:
- feat.windows.support
- feat/whisper.migration
tags:
- 'v*'
workflow_dispatch:
@ -70,6 +71,13 @@ jobs:
node-version: '24.1.0'
cache: 'pnpm'
- name: Install CUDA Toolkit
if: matrix.os == 'windows'
uses: Jimver/cuda-toolkit@v0.2.15
with:
cuda: '12.4.1'
method: 'network'
- name: Log Node.js architecture and platform
run: |
echo "=== Node.js Process Information ==="
@ -78,8 +86,24 @@ jobs:
echo ""
- name: Install dependencies
env:
GGML_NATIVE: OFF # ensure postinstall builds avoid i8mm on CI runners
run: pnpm install --frozen-lockfile
- name: Build whisper wrapper JS
run: pnpm --filter @amical/whisper-wrapper build
- name: Build whisper native binaries
env:
GGML_NATIVE: OFF # CI mac runners lack i8mm support; keep CPU features conservative here
run: pnpm --filter @amical/whisper-wrapper build:native
- name: Build whisper native binaries (cuda)
if: matrix.os == 'windows'
env:
GGML_NATIVE: OFF
run: pnpm --filter @amical/whisper-wrapper build:native:cuda
- name: Download Node.js binaries
working-directory: apps/desktop
run: pnpm download-node
@ -218,4 +242,4 @@ jobs:
artifacts/windows-x64/*.exe
artifacts/windows-x64/*.nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}