Skip to content

feat(native): declare supported platform targets - #262

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-native-platform-targets
Aug 9, 2026
Merged

feat(native): declare supported platform targets#262
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-native-platform-targets

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

This PR declares the complete agreed native target matrix in the Rstack NAPI-RS config, so generated platform package metadata and future release jobs can share one source of truth instead of adding one-line targets in separate PRs.

The reusable build workflow now derives the toolchain from the target: NAPI-RS cross toolchains for supported Linux glibc targets, pinned Zig/cargo-zigbuild for musl, a GNU cross compiler for RISC-V, native MSVC/macOS builds with the required i686 release-profile and macOS deployment-target settings, and an explicit failure for unknown targets.

This change does not add a workflow caller, a new runner type, platform publishing, or new runtime-support claims. Each platform still needs a focused follow-up PR to execute and validate its build recipe before release integration.

Validation

  • NAPI-RS create-npm-dirs --dry-run recognized all 13 target-to-package suffixes.
  • Actionlint, workflow Bash syntax, formatting, lint, build, and the full test suite passed.
  • The macOS arm64 release binding built successfully with a verified minimum deployment target of macOS 11.0.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e6447e
Status: ✅  Deploy successful!
Preview URL: https://0f77c990.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-native-platf.rstack-cli.pages.dev

View logs

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8e6447e98f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/reusable-native-build.yml
@chenjiahan
chenjiahan merged commit b7d9b70 into main Aug 9, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-native-platform-targets branch August 9, 2026 03:56
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.

1 participant