Skip to content

ci: run desktop packaging on PRs (macOS + Windows) - #469

Merged
jubaoliang merged 3 commits into
TencentCloud:developfrom
liukewia:ci/desktop-mac-github-action
Aug 29, 2026
Merged

ci: run desktop packaging on PRs (macOS + Windows)#469
jubaoliang merged 3 commits into
TencentCloud:developfrom
liukewia:ci/desktop-mac-github-action

Conversation

@liukewia

@liukewia liukewia commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a pull_request trigger for desktop/** and the desktop workflow so PRs can smoke-test packaging without waiting for a v* tag.
  • Select platforms in a dedicated job (dynamic matrix) so PRs start darwin-arm64 / darwin-amd64 / windows-amd64 / windows-arm64 runners, instead of spinning up the full six-platform matrix (Linux stays on tags / dispatch).
  • Keep tag / workflow_dispatch (platforms=all) on all six platforms, and document that split in desktop/README.md.

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

Workflow YAML + README only. select-platforms emits a JSON matrix: pull_request → darwin-* + windows-*; dispatch honors platforms; otherwise all six.

  • make all passes locally
  • Added/updated tests

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)

liukewia and others added 3 commits August 28, 2026 16:40
…atform selection

- Adjusted the GitHub Actions workflow to trigger builds for pull requests affecting the `desktop/` directory, limiting them to `darwin-arm64` and `darwin-amd64` platforms only.
- Enhanced platform selection logic to differentiate between pull request and tag dispatch events, ensuring appropriate builds are executed based on the event type.
- Updated README to reflect changes in CI behavior and clarify build processes for different scenarios.
- Introduced a new job to dynamically select platforms based on the event type, allowing for more flexible builds.
- Updated the matrix configuration to utilize the output from the platform selection step, streamlining the build process.
- Removed redundant build decision steps, simplifying the workflow and improving clarity.
PR packaging should cover all macOS and Windows arches; keep Linux for tags/dispatch only.

Co-authored-by: Cursor <cursoragent@cursor.com>
@liukewia liukewia changed the title ci: run desktop packaging on PRs (darwin only) ci: run desktop packaging on PRs (macOS + Windows) Aug 28, 2026
@liukewia
liukewia marked this pull request as draft August 28, 2026 09:08
@liukewia
liukewia marked this pull request as ready for review August 28, 2026 09:09
@jubaoliang
jubaoliang merged commit a6d9caa into TencentCloud:develop Aug 29, 2026
10 checks passed
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