feat: add Intel macOS (x64) CI/CD support via GitHub Actions#10
Open
996superbot wants to merge 1 commit into
Open
feat: add Intel macOS (x64) CI/CD support via GitHub Actions#10996superbot wants to merge 1 commit into
996superbot wants to merge 1 commit into
Conversation
- Add .github/workflows/release.yml with multi-platform build jobs - macOS x64 (macos-13 Intel runner): compile C binary + PyInstaller - macOS arm64 (macos-14 Apple Silicon runner) - Linux x64/arm64, Windows x64 - Auto-create GitHub Release with all platform binaries - Add darwin-x64, linux-x64, linux-arm64, win32-x64 to optionalDependencies so npm install works on all platforms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds GitHub Actions CI/CD to build and release wechat-cli binaries for all platforms, with a focus on enabling Intel macOS (x64) support which is currently missing.
Problem
darwin-arm64binarydarwin-x64platform directory exists but has no compiled binarynpm install -g @canghe_ai/wechat-cliChanges
1.
.github/workflows/release.yml(new)Multi-platform GitHub Actions workflow with 6 jobs:
macos-13(Intel runner), compiles C key scanner for x86_64, PyInstaller packagingmacos-14(Apple Silicon runner)ubuntu-latestwindows-latestTriggered by
v*tags or manualworkflow_dispatch.2.
npm/wechat-cli/package.json(modified)Added all platform packages to
optionalDependencies:@canghe_ai/wechat-cli-darwin-x64@canghe_ai/wechat-cli-linux-x64@canghe_ai/wechat-cli-linux-arm64@canghe_ai/wechat-cli-win32-x64This ensures
npm installautomatically fetches the correct binary for the user's platform.Verification
The Intel macOS C binary (
find_all_keys_macos.x86_64) has been compiled and tested locally on an Intel MacBook Pro (x86_64, macOS 14.8.3) —wechat-cli --helpruns successfully.Next Steps
After merging, the maintainer can:
v0.2.5(or next version) tag to trigger the workflow@canghe_ai/wechat-cli-darwin-x64, etc.)