Build, release, and platform delivery
Pipedash uses one Rust workspace and one main frontend build to produce a web service, a desktop app, and mobile apps. GitHub Actions checks these outputs on change and turns version tags into desktop packages, a container image, Rust crates, and mobile store submissions. A separate store-asset editor supplies the screenshots and release text used by the mobile lanes.
Build model
The build model joins the TypeScript frontend to Rust products at their delivery boundary. Local mise tasks provide the same broad build, check, lint, test, and release stages that CI uses.
Rust workspace
The Rust workspace is the shared build base for the web service, desktop app, platform plugins, and push relay. Its common version is 0.15.0, and its lock file fixes the dependency graph used by local builds and CI. The web service can embed the built frontend, so release builds need frontend assets before the service package is made.
References: Cargo.toml• L1-6 Cargo.toml• L49-53 Cargo.lock• L1-4 crates/…/Cargo.toml• L1-18 rust-toolchain.toml• L1-10 mise.toml• L47-55
Frontend and Tauri builds
The main frontend is type-checked and bundled by Vite. Tauri uses that bundle as the app interface for desktop, Android, and iOS products. The package scripts expose the same build boundary for local work and for release jobs.
The main build paths are:
flowchart LR
A[Frontend source] --> B[Frontend assets]
B --> C[Web service with embedded assets]
B --> D[Tauri desktop package]
B --> E[Tauri Android package]
B --> F[Tauri iOS package]
References: package.json• L1-19 crates/…/tauri.conf.json• L17-36 mise.toml• L56-66
Continuous integration
CI checks the shared product before release work begins. Pull requests and pushes to main run general quality checks, Docker image checks, and platform checks when the related paths change. The workflows use concurrency limits so a newer run can replace an older run for the same branch.
General quality checks
The general CI workflow checks workflow safety, source structure, frontend quality, Rust formatting, cross-platform linting, workspace tests, PostgreSQL behavior, frontend bundles, and plugin packages. It also runs the store-asset editor tests as part of the frontend test stage. A separate Docker workflow builds the web image for Linux AMD64 without publishing it.
References: .github/…/ci.yml• L1-24 .github/…/ci.yml• L25-184 .github/…/ci.yml• L186-319 .github/…/ci-docker.yml• L1-72 ios/…/package.json• L8-19
Platform checks
The Android and iOS check workflows validate unsigned store packages before a release. Pull requests run the store checks, while pushes to main also run emulator or simulator smoke flows and retain screenshots as artifacts.
The platform checks move through these stages:
flowchart LR
A[Platform source change] --> B[Build unsigned package]
B --> C[Store rule checks]
C --> D[Android emulator or iOS simulator smoke flow]
D --> E[Screenshot artifact]
References: .github/…/ci-android.yml• L1-30 .github/…/ci-android.yml• L41-71 .github/…/ci-android.yml• L72-127 .github/…/ci-ios.yml• L1-30 .github/…/ci-ios.yml• L41-69 .github/…/ci-ios.yml• L71-101
Repository activity maintenance
The stale workflow manages inactive issues and pull requests on the main repository. It runs once each day and keeps this maintenance action separate from build and release status.
References: .github/…/stale.yml• L1-29 .github/…/stale.yml• L30-45
Release workflow
The release workflow starts from a semantic version tag such as v1.2.3 or a tagged pre-release. It creates a draft GitHub release first, builds desktop assets and the web image in parallel, publishes stable Rust crates in dependency order, and adds an updater manifest with generated notes. Stable tags then publish the GitHub release; beta and alpha tags do not publish stable crates or the final release.
This sequence shows how one tag reaches its delivery targets.
flowchart TD
A[Version tag] --> B[Validate tag]
B --> C[Create draft release]
C --> D[Build desktop packages]
C --> E[Build container platforms]
C --> F[Publish stable crates]
E --> G[Publish multi-platform image]
D --> H[Add assets and updater manifest]
F --> H
G --> H
H --> I[Publish GitHub release]
The desktop matrix covers Linux ARM64 and AMD64, macOS universal, and Windows x86, x86_64, and ARM64 packages. The container matrix covers Linux AMD64 and ARM64. Shared crates publish before provider crates, and application crates publish after those providers.
References: .github/…/release.yml• L1-31 .github/…/release.yml• L33-59 .github/…/release.yml• L60-179 .github/…/release.yml• L180-294 .github/…/release.yml• L295-454 .github/…/release.yml• L455-516 .github/…/release.yml• L517-563
Container delivery
Container delivery serves the web product and the push relay as small Linux images. The web image builds frontend assets first and embeds them in the Rust web service. Release jobs publish one multi-platform web image from separate AMD64 and ARM64 image digests.
Web image
The web image is published as ghcr.io/<owner>/pipedash-web for AMD64 and ARM64. Its runtime has the Rust service, CA certificates, and a writable /data volume, and it runs as a non-root user. Release jobs push each platform by digest, then create one manifest with semantic version tags, a commit tag, and latest for non-alpha and non-beta releases.
References: docker/Dockerfile• L1-12 docker/Dockerfile• L14-57 docker/Dockerfile• L59-72 .github/…/ci-docker.yml• L50-72 .github/…/release.yml• L180-294
Push relay image
The push relay image is a separate runtime target for receiving push traffic. It listens on port 8080, stores its relay database in a mounted /data volume, and runs as a non-root user. Its Dockerfile defines the image contract, but the release workflow currently publishes the pipedash-web image only.
References: docker/push-relay.Dockerfile• L14-56 .github/…/release.yml• L180-294
Mobile delivery
Mobile delivery uses Tauri to generate native projects and Fastlane to apply store rules, signing, metadata, screenshots, release text, and upload actions. The Android and iOS release workflows can run from version tags or by hand, and each has lanes for test delivery, store delivery, or asset-only work.
Store asset generation
The store-asset editor turns one project description and app captures into platform-specific screenshot sets and downloadable bundles. The capture tool produces stable views for iPhone, iPad, Android phone, Android tablet, and desktop, using local fixture data so screenshots do not depend on live provider systems. The editor supports locale-aware screens, device layouts, and preflight warnings when a capture is missing or does not fit its target.
The asset flow connects the editor to the mobile lanes:
flowchart LR
A[Project and app captures] --> B[Store-asset editor]
B --> C[PNG export bundle]
C --> D[Android Play assets]
C --> E[iOS App Store assets]
The editor can save a validated project back to the tracked project file. It can also accept image and font uploads for project assets, but only after checking their type and size before writing them to the asset area. The project file remains the source for later exports while the upload routes reject malformed or conflicting writes.
References: ios/…/package.json• L8-19 ios/…/bun.lock• L1-49 ios/…/page.tsx• L1-6 ios/…/app-store-screenshots.json• L1-20 ios/…/app-store-screenshots.json• L432-665 ios/…/app-store-screenshots.json• L666-1115 ios/…/app-store-screenshots.json• L1121-1375 ios/…/export-bundle.ts• L152-196 ios/…/export-preflight.ts• L21-68 ios/…/project-validation.ts• L21-143 ios/…/project-migration.ts• L225-264 ios/…/route.ts• L22-99 ios/…/capture-app.mjs• L9-45 ios/…/capture-app.mjs• L48-176 ios/…/capture-fixtures.mjs• L1-20 ios/…/route.ts• L11-24 ios/…/route.ts• L96-139 ios/…/route.ts• L11-20 ios/…/route.ts• L35-85
Android delivery
Android delivery produces an App Bundle for Google Play and a debug APK for emulator checks. The release lanes support closed testing, production release, screenshot-only uploads, data-safety updates, and a signed bundle for a first manual upload. The workflow can run from a version tag or by hand, with a branch override allowed only for beta builds. Release notes come from version files such as 1.15.0.txt, so the store message travels with the Android release lane.
The Android path checks the bundle before upload. It verifies the manifest, version values, native ABIs, page alignment, and signature when the bundle is signed. This keeps Google Play constraints visible before a store upload.
References: .github/…/release-android.yml• L1-32 .github/…/release-android.yml• L34-101 .github/…/ci-android.yml• L41-71 .github/…/ci-android.yml• L72-127 android/…/Fastfile• L91-181 android/…/Fastfile• L200-292 android/…/1.15.0.txt• L1-5
iOS delivery
iOS delivery produces an IPA for TestFlight or App Store review and simulator builds for screenshot checks. The release lanes prepare the app project, notification service extension, privacy files, entitlements, icons, store text, review notes, and screenshots before upload. A separate setup lane registers push identifiers and renews App Store profiles.
The iOS path checks the packaged app and notification extension before release. It validates required metadata, privacy declarations, app structure, signing entitlements, and code signatures. Store text uses a version file when one exists, otherwise it converts the GitHub release text and enforces the App Store and Google Play length limits. A short promotional file is optional and has its own limit. The setup action also rejects Xcode versions below 26 because App Store Connect requires that toolchain level.
References: .github/…/release-ios.yml• L1-31 .github/…/release-ios.yml• L33-94 .github/…/ci-ios.yml• L41-69 .github/…/ci-ios.yml• L71-101 ios/…/Fastfile• L90-150 ios/…/Fastfile• L240-386 .github/…/action.yml• L35-52 ios/…/1.15.0.txt• L1-8 ios/…/1.15.0.promo.txt• L1 ios/…/store_text.rb• L1-35 ios/…/store_text.rb• L38-87 ios/…/store_text_test.rb• L45-119
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the version in Cargo.toml, package.json, and crates/…/tauri.conf.json aligned with the store release-note mapping.
- When frontend output or its path changes, update both the Tauri
frontendDistcontract and the web container's copieddistpath. - When a Rust target or native dependency changes, update the matching release matrix and the Android or iOS setup action.
- When a workflow is renamed or split, update path filters, branch triggers, release references, and any documentation that invokes the old workflow name.
- When Docker build inputs change, keep the Docker CI path filter and both release image architectures aligned.
- When app identifiers, extensions, privacy files, entitlements, or icons change, re-check the generated mobile project and both store verification lanes.
- When the store project schema, device targets, capture fixtures, export sizes, or screenshot paths change, re-check the editor export bundle and the Android and iOS artifact paths.
- When an upload route changes, preserve content checks, size limits, safe write rules, and the public asset path expected by the editor.
- When store text rules or release-note files change, re-check the version-file fallback, platform length limits, and promotional text handling.
- Keep the Android and iOS Fastlane dependency locks aligned with the lanes used by their workflows.
- When release tag rules or image tags change, update the stable-versus-preview conditions for crates, images, and GitHub release publication together.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A release tag does not match the required version form | The release stops before package builds start | validate-version accepts only vX.Y.Z with an optional suffix |
| Frontend assets are missing or copied from the wrong path | The web service cannot include its intended user interface | The web build runs before the Rust web build and the container copies crates/pipedash-web/dist explicitly |
| A target is missing from a release or mobile matrix | A platform package is not built or cannot link | Release and setup workflows declare the Rust target for each platform and architecture |
| A changed workflow path is not included in its trigger filter | A required platform or Docker check does not run for the change | Each current CI workflow lists its source, setup, and workflow paths |
| An Android bundle has the wrong ABI, page alignment, version, or signature | Google Play rejects the upload or the app fails platform requirements | verify_aab checks each property before beta or production upload |
| An iOS archive omits privacy data or its notification extension | App Store checks fail or push notification behavior is incomplete | verify_ipa inspects the app and extension before signed release upload |
| A screenshot capture makes an external request or has the wrong device size | The capture run fails or store exports contain invalid images | The capture tool uses loopback-only app access, fixture responses, and explicit device dimensions |
| An uploaded image or font has invalid content or exceeds its limit | The store project cannot safely use the asset | Upload routes check type, structure, size, and image decoding before writing hashed assets |
| A version has no usable store text | A mobile lane cannot create valid What's New content | Store text uses a version file or a published GitHub release and rejects empty output |
| A release job cannot access signing or store credentials | The build may produce no uploadable mobile package | Android and iOS workflows isolate credentials in their store environments and write them only during the job |
| A beta branch override is used for an App Store or production lane | The mobile release job stops before checkout | Android and iOS workflows allow beta_ref only for the beta lane |
Key files
| File | Why to read it |
|---|---|
| mise.toml | Shows the shared local build, quality, test, and release task model |
| Cargo.toml | Defines the Rust workspace and common package version |
| Cargo.lock | Pins the dependency graph used by Rust builds |
| package.json | Defines the frontend build, test, lint, and Tauri entry points |
| crates/…/tauri.conf.json | Defines the shared Tauri app identity, frontend boundary, and desktop bundle contract |
| .github/…/ci.yml | Shows the general quality, test, bundle, and crate package checks |
| .github/…/ci-docker.yml | Shows the non-publishing Docker image check and its source paths |
| .github/…/ci-android.yml | Shows Android store checks, emulator smoke coverage, and screenshot artifacts |
| .github/…/ci-ios.yml | Shows iOS store checks, simulator smoke coverage, and screenshot artifacts |
| .github/…/release.yml | Shows tag validation, package builds, image publication, crate publication, and release publication |
| .github/…/release-android.yml | Shows Android release lanes, signing inputs, and store artifacts |
| .github/…/release-ios.yml | Shows iOS release lanes, signing inputs, and store artifacts |
| .github/…/stale.yml | Shows scheduled issue and pull request maintenance |
docker/Dockerfile | Explains how the web service and frontend become a runtime image |
docker/push-relay.Dockerfile | Defines the separate push relay runtime image and its persistent data contract |
android/fastlane/Fastfile | Defines Android checks, signing, Play tracks, metadata, and screenshot delivery |
| android/…/1.15.0.txt | Provides the Android store text for the current release |
ios/fastlane/Fastfile | Defines iOS project preparation, validation, signing, TestFlight, and App Store delivery |
| ios/…/store_text.rb | Defines the source and length rules for mobile release text |
| ios/…/store_text_test.rb | Shows the guarantees for release text cleanup, fallback, and limits |
| ios/…/1.15.0.txt | Provides the iOS store text for the current release |
| ios/…/1.15.0.promo.txt | Provides the optional iOS promotional text for the current release |
| ios/…/app-store-screenshots.json | Defines the checked-in store screenshot project across mobile targets |
| ios/…/package.json | Defines the editor, capture, export, type-check, and test commands |
| ios/…/capture-app.mjs | Shows how repeatable app captures are made for each target device |
| ios/…/capture-fixtures.mjs | Provides the fixed data used by screenshot captures |
| ios/…/export-bundle.ts | Shows how the editor turns project screens into downloadable PNG bundles |
| ios/…/project-validation.ts | Defines the data rules that protect the store screenshot project |
| ios/…/route.ts | Defines safe image upload checks for store assets |
| ios/…/route.ts | Defines safe font upload checks for store assets |
| .github/…/action.yml | Defines the Android CI toolchain and Rust targets |
| .github/…/action.yml | Defines the iOS CI toolchain, Rust targets, and Xcode gate |