run-builds

Dispatch production build workflows for Ledger Wallet apps and post run links to pull requests.

615|491|Updated Jan 4, 2022
One-click install
npx skills add https://github.com/LedgerHQ/ledger-live --skill run-builds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-builds
Source: https://github.com/LedgerHQ/ledger-live/tree/main/.agents/skills/run-builds
Command: npx skills add https://github.com/LedgerHQ/ledger-live --skill run-builds

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Producing installable Desktop, Android, and iOS artifacts from a ledger-live branch requires manually dispatching workflows in the separate LedgerHQ/ledger-live-build repository, which is error-prone and slow to do by hand.

Core Features & Use Cases

  • Scoped Build Dispatch: Analyzes the PR file list to trigger only the affected platforms (Desktop, Android APK, iOS) instead of building everything.
  • Cross-Repository Workflow Dispatch: Runs gh workflow run against LedgerHQ/ledger-live-build, passing the ledger-live branch as repo and ref inputs.
  • PR Comment Reporting: Posts or updates a PR comment in ledger-live with links to each dispatched workflow run.
  • Use Case: A reviewer asks for an APK of a mobile-only PR; the skill detects the change scope, dispatches only build-apk.yml, and comments the run link on the PR.

Quick Start

Ask the assistant to run builds for the current PR branch and post the dispatched run links as a PR comment.

Frequently Asked Questions about run-builds

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trigger a production build for a ledger-live branch?

Use `gh workflow run` targeting the LedgerHQ/ledger-live-build repository with the workflow file (build-desktop.yml, build-apk.yml, or build-ios.yml), passing `-f repo=LedgerHQ/ledger-live` and `-f ref=<branch>` as inputs.

How do I build only the platforms affected by a PR?

Fetch the PR file list with `gh pr view <pr> --json files` and map paths to platforms: desktop app changes trigger Desktop, mobile app changes trigger Android and iOS, and shared library changes may require all three.

Why are the build workflows not in the ledger-live repository?

The production build workflows live in the separate LedgerHQ/ledger-live-build repository. The branch to build is passed as workflow inputs (`repo` and `ref`), not via the `--ref` flag, which would select a ledger-live-build ref instead.

Can I update an existing PR comment instead of posting a new one?

Yes, use `gh pr comment <pr> -R LedgerHQ/ledger-live --edit-last --body "..."` to update the previously posted build comment when re-dispatching builds, avoiding stacked duplicate comments.

What artifacts do the ledger-live build workflows produce?

The Desktop workflow produces macOS, Linux, and Windows bundles, the Android workflow produces an APK, and the iOS workflow produces an iOS build. Artifacts are attached to each workflow run on completion.