Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 694fde8

Browse files
Fix CI workflows and formatting
- cargo fmt on lib.rs and asr.rs - Frontend CI: switch from npm to bun (matches project toolchain) - Rust CI: switch to macos-latest (build requires macOS sidecars and Swift) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4e1a5eb commit 694fde8

4 files changed

Lines changed: 20 additions & 23 deletions

File tree

.github/workflows/frontend_ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- "src/**"
99
- "index.html"
1010
- "package.json"
11-
- "package-lock.json"
11+
- "bun.lockb"
1212
- "tsconfig*.json"
1313
- "vite.config.*"
1414
pull_request:
@@ -18,7 +18,7 @@ on:
1818
- "src/**"
1919
- "index.html"
2020
- "package.json"
21-
- "package-lock.json"
21+
- "bun.lockb"
2222
- "tsconfig*.json"
2323
- "vite.config.*"
2424

@@ -32,14 +32,13 @@ jobs:
3232
steps:
3333
- uses: actions/checkout@v4
3434

35-
- name: Setup Node.js
36-
uses: actions/setup-node@v4
35+
- name: Setup Bun
36+
uses: oven-sh/setup-bun@v2
3737
with:
38-
node-version: 22
39-
cache: npm
38+
bun-version: "1.3.9"
4039

4140
- name: Install dependencies
42-
run: npm ci
41+
run: bun install --frozen-lockfile
4342

4443
- name: Build frontend
45-
run: npm run build
44+
run: bun run build

.github/workflows/rust_ci.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ concurrency:
1818

1919
jobs:
2020
rust:
21-
runs-on: ubuntu-22.04
21+
runs-on: macos-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- name: Install system dependencies
26-
run: |
27-
sudo apt-get update
28-
sudo apt-get install -y libasound2-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
29-
3025
- name: Setup Rust
3126
uses: dtolnay/rust-toolchain@stable
3227
with:

src-tauri/src/asr.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ pub fn reset_managed_model(model_id: &str) -> Result<(), String> {
278278
}
279279
}
280280

281-
pub fn transcribe_audio_file(model_id: &str, audio_path: &Path, language: &str) -> Result<String, String> {
281+
pub fn transcribe_audio_file(
282+
model_id: &str,
283+
audio_path: &Path,
284+
language: &str,
285+
) -> Result<String, String> {
282286
#[cfg(target_os = "macos")]
283287
{
284288
let model_id: SRString = model_id.into();

src-tauri/src/lib.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,14 +1075,13 @@ fn build_app_menu<R: tauri::Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result
10751075
true,
10761076
Some("CmdOrCtrl+,"),
10771077
)?;
1078-
let check_for_updates_item =
1079-
MenuItem::with_id(
1080-
app,
1081-
CHECK_FOR_UPDATES_MENU_ID,
1082-
"Check for Updates...",
1083-
true,
1084-
None::<&str>,
1085-
)?;
1078+
let check_for_updates_item = MenuItem::with_id(
1079+
app,
1080+
CHECK_FOR_UPDATES_MENU_ID,
1081+
"Check for Updates...",
1082+
true,
1083+
None::<&str>,
1084+
)?;
10861085

10871086
let edit_menu = Submenu::with_items(
10881087
app,

0 commit comments

Comments
 (0)