Skip to content

ci(cli): add PR and release workflows#681

Merged
alexfreska merged 1 commit into
mainfrom
cli/deployment
May 9, 2026
Merged

ci(cli): add PR and release workflows#681
alexfreska merged 1 commit into
mainfrom
cli/deployment

Conversation

@alexfreska

Copy link
Copy Markdown
Member

No description provided.

alexfreska commented May 7, 2026

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@alexfreska alexfreska changed the title feat(cli): add deployment configs and installer script feat(cli): test deploy scripts May 7, 2026
@alexfreska alexfreska changed the title feat(cli): test deploy scripts feat(cli): deploy scripts May 7, 2026
@alexfreska alexfreska changed the title feat(cli): deploy scripts feat(cli): build and deploy scripts May 7, 2026
@alexfreska alexfreska changed the title feat(cli): build and deploy scripts feat(cli): installer scripts May 7, 2026
@alexfreska alexfreska changed the title feat(cli): installer scripts feat(cli): installer script May 7, 2026
@alexfreska alexfreska changed the base branch from cli/ui to graphite-base/681 May 7, 2026 23:13
@alexfreska alexfreska force-pushed the graphite-base/681 branch from 65e4e23 to a48768d Compare May 7, 2026 23:13
@alexfreska alexfreska force-pushed the graphite-base/681 branch 2 times, most recently from 1fdffc2 to 0df207c Compare May 8, 2026 23:47
@alexfreska alexfreska changed the base branch from graphite-base/681 to main May 8, 2026 23:47
@alexfreska alexfreska changed the title feat(cli): installer script ci(cli): add release workflow May 8, 2026
@alexfreska alexfreska changed the title ci(cli): add release workflow ci(cli): add PR and release workflows May 8, 2026
@alexfreska alexfreska marked this pull request as ready for review May 9, 2026 00:03
Copilot AI review requested due to automatic review settings May 9, 2026 00:03
@alexfreska alexfreska merged commit 79f7c0f into main May 9, 2026
17 checks passed
@alexfreska alexfreska deleted the cli/deployment branch May 9, 2026 00:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds CI coverage and release automation for the apps/cli package, including cross-platform build targets and an initial installer script to download published binaries.

Changes:

  • Extend root and CLI package scripts to include CLI tests and multi-target builds (darwin/linux/windows).
  • Add a new GitHub Actions workflow to build and attach CLI binaries to cli/* GitHub Releases.
  • Add CLI jobs to the PR workflow (unit/e2e tests + cross-compile build matrix) and introduce a shell installer script.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
package.json Adds CLI to the repo-level test pipeline and introduces CLI-focused scripts (test/build variants).
apps/cli/package.json Replaces the single Linux build script with per-platform build targets and standardized artifact names.
apps/cli/install.sh Adds an installer that downloads the platform binary into ~/.sia/bin and updates shell PATH.
.github/workflows/release-cli.yml New workflow to build cross-platform CLI binaries and upload them to GitHub Releases.
.github/workflows/pr.yml Adds CLI test, CLI e2e test, and cross-compile verification jobs to PR CI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/cli/install.sh
Comment on lines +10 to +13
# Host that serves the release binaries as `sia-storage-<os>-<arch>`. Fill in
# once a release host is wired up (e.g.
# `https://github.com/SiaFoundation/sia-storage-app/releases/latest/download`).
BASE_URL=""
Comment thread apps/cli/install.sh
Comment on lines +96 to +97
local path_line="export PATH=\"$BIN_DIR:\$PATH\""

Comment thread apps/cli/install.sh
Comment on lines +61 to +65
download() {
local url="$1" dest="$2"
if command -v curl &>/dev/null; then
curl --fail --location --silent --show-error --output "$dest" "$url"
elif command -v wget &>/dev/null; then
Comment on lines +64 to +68
upload:
# Only attach to the GitHub release on real release events (not dispatch),
# and skip when the operator is dry-running CI changes.
if: ${{ github.event_name == 'release' && !inputs.dry_run }}
needs: build
Comment on lines +1 to +5
name: Release CLI

on:
release:
types: [published]
Comment thread apps/cli/install.sh
Comment on lines +101 to +105
{
echo ""
echo "# Sia Storage CLI"
echo "$path_line"
} >> "$config_file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants