Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,45 @@ jobs:
args: ""
python-version: "3.12"
backend: "pytorch"
- platform: "ubuntu-22.04"
# --config override disables updater-artifact generation on Linux.
# tauri.conf.json has createUpdaterArtifacts: "v1Compatible" which
# on Linux wants to synthesize a .AppImage.tar.gz by downloading
# linuxdeploy at build time — this is what silently hangs CI
# (see v0.4.2 round 2, 25 min of no output after rpm bundling).
# We ship deb+rpm only; Linux users update via apt/dnf, not the
# Tauri in-app updater.
args: '--target x86_64-unknown-linux-gnu --bundles deb,rpm --verbose --config {"bundle":{"createUpdaterArtifacts":false}}'
python-version: "3.12"
backend: "pytorch"
Comment on lines +29 to +39

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🌐 Web query:

tauri-apps/tauri-action how are args passed to tauri CLI shell quoting JSON --config

💡 Result:

In the tauri-apps/tauri-action GitHub Action, arguments are passed to the Tauri CLI via the args input, which is parsed into an array using the string-argv library. This library splits the input string on spaces while respecting quotes, so paths with spaces must be quoted. To pass --config with a JSON file path: with: args: '--config "path/to/tauri.conf.json" --other-arg value' The Tauri CLI's --config (or -c) flag accepts either: - A file path (relative paths resolve relative to projectPath if set) - An inline JSON string When a path is provided, Tauri first attempts to parse it as JSON (expecting inline config), and falls back to reading the file if parsing fails—this produces the "Couldn't parse --config flag as inline JSON. This is not an error if it's a file path." message, which is normal. Examples from docs and issues: - args: '--target aarch64-apple-darwin' - args: "--config tauri.conf.linux.json" (fails if path has spaces or relative path issues) - args: "-c src-tauri/tauri.conf.linux.json" For paths with spaces, use double quotes around the path value. Paths are resolved relative to the project root (projectPath), and the action detects/supports --config for config merging. Official docs confirm: "Additional arguments to the current tauri build command. Relative paths in the --config flag will be resolved relative to projectPath."

Citations:


Consider using a separate config file instead of inline JSON in --config for clarity.

The embedded JSON in --config {"bundle":{"createUpdaterArtifacts":false}} is wrapped in YAML single quotes, which preserves the literal double-quote characters. The tauri-action GitHub Action uses the string-argv library to parse the args input, which respects quoted strings and prevents brace expansion, so the JSON should parse correctly. Tauri CLI officially supports inline JSON in the --config flag and will parse it as expected.

However, for clarity and maintainability, using a separate config file is recommended:

  • Create src-tauri/tauri.conf.linux.json with the Linux-specific overrides
  • Pass args: '--target x86_64-unknown-linux-gnu --bundles deb,rpm --verbose --config tauri.conf.linux.json'

This avoids any quoting subtleties and makes the configuration explicit.

In any case, confirm in the first Ubuntu run that the Tauri step logs show createUpdaterArtifacts actually being overridden (via --verbose output) and that no linuxdeploy download is attempted, to ensure the config override is working as intended.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release.yml around lines 29 - 39, Replace the inline JSON
passed to the tauri CLI via the args value (the --config
{"bundle":{"createUpdaterArtifacts":false}} string) with an explicit
Linux-specific config file and point --config at that file; create
src-tauri/tauri.conf.linux.json containing {"bundle": {"createUpdaterArtifacts":
false}} and change the args value in the workflow to use --config
tauri.conf.linux.json (keeping the other flags intact), then run the Ubuntu job
and confirm the tauri step (via --verbose output) shows createUpdaterArtifacts
overridden and no linuxdeploy download occurs.


runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v4

# Ubuntu runners ship with ~14 GB free; pip + PyInstaller + torch can
# peak well above that during the build. Reclaim ~25 GB by pruning
# preinstalled toolchains we don't use. This is what likely tripped
# the March 2026 Linux release attempts (see commit 103e98b
# "github runners suck") — not a code issue, a disk-pressure one.
- name: Free up disk space (ubuntu)
if: contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'namespace')
# Pinned to v1.3.1 (SHA) — this job runs with contents: write and
# handles signing secrets later, so we don't want a floating ref.
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be
with:
tool-cache: false
android: true
dotnet: true
haskell: true
# large-packages: true would `apt-get remove '^llvm-.*'`, which
# cascade-removes reverse deps that won't be pulled back in by the
# `llvm-dev` install below. The other flags already free ~20 GB,
# enough for the Python + torch + PyInstaller build.
large-packages: false
swap-storage: true

- name: Install dependencies (ubuntu only)
if: contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'namespace')
run: |
Expand Down Expand Up @@ -133,6 +166,21 @@ jobs:
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}

- name: Disk / environment snapshot (pre-bundle debug)
if: contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'namespace')
run: |
echo "=== df -h ==="
df -h
echo "=== free -h ==="
free -h
echo "=== Rust / Cargo ==="
rustc --version
cargo --version
echo "=== Bun ==="
bun --version
echo "=== Tauri CLI ==="
cd tauri && bun run tauri --version

- name: Extract release notes from CHANGELOG.md
id: changelog
shell: bash
Expand All @@ -156,7 +204,13 @@ jobs:
echo "CHANGELOG_EOF"
} >> "$GITHUB_OUTPUT"

# Linux hang watchdog: previous releases silently wedged inside tauri
# bundling (possibly linuxdeploy/AppImage download, possibly cargo link).
# Cap the step at 30 min so we get logs instead of waiting out the 6hr
# job timeout. Other platforms historically complete in ~25 min, so 45
# is comfortable.
- uses: tauri-apps/tauri-action@v0.6
timeout-minutes: ${{ (contains(matrix.platform, 'ubuntu') || contains(matrix.platform, 'namespace')) && 30 || 45 }}
Comment on lines +207 to +213

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

30-minute timeout may be tight for the first Linux build.

The Ubuntu job does a cold Rust build plus deb + rpm bundling (no Rust cache hit on first run, and swatinem/rust-cache won't have a baseline). If tauri-action is capped at 30 min, the initial release can trip the watchdog for a non-hang reason and mask whether the createUpdaterArtifacts:false fix actually worked. Consider starting at 45 min for Ubuntu too and tightening later once you have a baseline, or only applying the 30-min cap on re-runs.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/release.yml around lines 201 - 207, The 30-minute timeout
on the tauri bundling step (the step using tauri-apps/tauri-action@v0.6) is too
short for a cold Ubuntu build; update the timeout-minutes expression so Ubuntu
(or any linux/namespace matrix entries) uses 45 minutes instead of 30 for
initial runs (e.g., change the conditional that sets timeout-minutes for the
tauri-action step to return 45 for Ubuntu/linux), and optionally document or
gate a later reduction once a baseline build time is observed.

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
Expand All @@ -168,6 +222,9 @@ jobs:
APPLE_PROVIDER_SHORT_NAME: ${{ secrets.APPLE_PROVIDER_SHORT_NAME }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
# Stream subprocess stdout/stderr so the hang is visible in logs.
CARGO_TERM_VERBOSE: "true"
RUST_BACKTRACE: "1"
with:
projectPath: tauri
tagName: v__VERSION__
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@voicebox/app",
"version": "0.4.1",
"version": "0.4.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion landing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@voicebox/landing",
"version": "0.4.1",
"version": "0.4.2",
"description": "Landing page for voicebox.sh",
"scripts": {
"dev": "bun --bun next dev --turbo",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voicebox",
"version": "0.4.1",
"version": "0.4.2",
"private": true,
"workspaces": [
"app",
Expand Down
2 changes: 1 addition & 1 deletion tauri/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@voicebox/tauri",
"private": true,
"version": "0.4.1",
"version": "0.4.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion tauri/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "voicebox"
version = "0.4.1"
version = "0.4.2"
description = "A production-quality desktop app for Qwen3-TTS voice cloning and generation"
authors = ["you"]
license = ""
Expand Down
2 changes: 1 addition & 1 deletion tauri/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Voicebox",
"version": "0.4.1",
"version": "0.4.2",
"identifier": "sh.voicebox.app",
"build": {
"beforeDevCommand": "bun run dev",
Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@voicebox/web",
"private": true,
"version": "0.4.1",
"version": "0.4.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
Loading