Skip to content

Rebuild the devpanel CLI from devpanel/cli - #318

Merged
darrenoh merged 7 commits into
mainfrom
cursor/devpanel-cli-update-workflow-a776
Nov 5, 2026
Merged

darrenoh merged 7 commits into
mainfrom
cursor/devpanel-cli-update-workflow-a776

Conversation

@darrenoh

@darrenoh darrenoh commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a standalone workflow that rebuilds the DevPanel CLI from devpanel/cli cmd/devpanel-client. This pull request is based on main and does not change the image build workflow or any Dockerfile.

update-devpanel-cli.yml runs from Run workflow. It looks up the latest commit that changed cmd/devpanel-client and checks the Actions cache for that commit. A cache hit skips the build. A cache miss builds both binaries in parallel and commits them with the workflow token (contents: write):

  • base/bin/devpanel-amd64 on ubuntu-26.04
  • base/bin/devpanel-arm64 on ubuntu-26.04-arm

GHCR_TOKEN reads devpanel/cli. A new run cancels one already in progress. The devpanel/cli checkout is placed under the runner temp directory, outside this repository. To rebuild a commit that is already cached, delete that cache entry. A commit that changes only another directory in devpanel/cli leaves these binaries as they are.

Test plan

  • YAML lint matches the existing baseline.
  • Run Update DevPanel CLI binaries once GHCR_TOKEN can read devpanel/cli. Confirm base/bin/devpanel-amd64 and base/bin/devpanel-arm64 are committed and a second run skips the build.
Open in Web Open in Cursor 

Build linux/amd64 and linux/arm64 from devpanel/cli on native runners
when the Actions cache does not already contain that commit.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/devpanel-cli-update-workflow-a776 branch from 88a83dc to e2f3713 Compare November 5, 2026 19:49
@cursor cursor Bot changed the title Rebuild the devpanel CLI when its source changes Rebuild the devpanel CLI from devpanel/cli Nov 5, 2026
@cursor
cursor Bot changed the base branch from cursor/platform-devpanel-binary-a776 to main November 5, 2026 19:49
cursoragent and others added 6 commits November 5, 2026 19:50
Drop workflow_call and the skip-ci trailer so a binary commit pushes
normally and the image build starts from that push.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
The matrix job already selects the architecture, so the build script
compiles a native binary and no longer takes an architecture argument.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
Cache the latest commit that changed that directory, cancel a run
already in progress, and drop the helper scripts that repeated the
same checks.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
Give the commit job contents write permission and use that token for
the push. GHCR_TOKEN remains the credential that reads devpanel/cli.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
Restore workflow_call now that the workflow token's push does not
start another image build. Return the commit that contains the binaries.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
Remove workflow_call so the binary rebuild runs only from Run workflow
and does not return a commit to a caller.

Co-authored-by: Darren Oh <darrenoh@users.noreply.github.com>
@darrenoh
darrenoh merged commit c42fed4 into main Nov 5, 2026
8 checks passed
@darrenoh
darrenoh deleted the cursor/devpanel-cli-update-workflow-a776 branch November 5, 2026 20:54
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