Repository navigation
feat(ci): re-enable Linux release builds (CPU, deb+rpm) #488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7db1651
a756295
e69830a
d02c0cb
ddc42b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
|
||
| 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: | | ||
|
|
@@ -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 | ||
|
|
@@ -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
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 30-minute timeout may be tight for the first Linux build. The Ubuntu job does a cold Rust build plus 🤖 Prompt for AI Agents |
||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | ||
|
|
@@ -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__ | ||
|
|
||
| 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", | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 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:
--configflag tauri-apps/tauri-action#712Consider using a separate config file instead of inline JSON in
--configfor clarity.The embedded JSON in
--config {"bundle":{"createUpdaterArtifacts":false}}is wrapped in YAML single quotes, which preserves the literal double-quote characters. Thetauri-actionGitHub Action uses thestring-argvlibrary to parse theargsinput, which respects quoted strings and prevents brace expansion, so the JSON should parse correctly. Tauri CLI officially supports inline JSON in the--configflag and will parse it as expected.However, for clarity and maintainability, using a separate config file is recommended:
src-tauri/tauri.conf.linux.jsonwith the Linux-specific overridesargs: '--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
createUpdaterArtifactsactually being overridden (via--verboseoutput) and that nolinuxdeploydownload is attempted, to ensure the config override is working as intended.🤖 Prompt for AI Agents