Merged
Conversation
Add CI/CD matrix builds to create platform-specific VSIXs for Sharp native binary compatibility across all supported platforms. - Add 6-platform build matrix (win32-x64, win32-arm64, linux-x64, linux-arm64, darwin-x64, darwin-arm64) - Support cross-platform Sharp binary installation for ARM64 targets - Update publish workflow to build and publish all platform VSIXs - Enhance verify-vsix.mjs to accept target platform argument - VS Code Marketplace automatically serves correct VSIX per platform Fixes Sharp load error on Windows ARM64: "Could not load the sharp module using the win32-arm64 runtime" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
macos-13 runner has been retired. Migrate to macos-15-intel which is the last supported Intel-based macOS runner. Reference: actions/runner-images#13046 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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
Add CI/CD matrix builds to create platform-specific VSIXs, enabling Sharp native module support across all platforms.
Problem
Sharp failed to load on Windows ARM64:
The VSIX only contained Linux x64 binaries because CI ran on
ubuntu-latestonly.Solution
npm install --cpu=arm64 --os=<os> sharpfor ARM64 targetsChanges
ci.ymlpublish.ymlverify-vsix.mjspackage.jsonTest plan
vsce package --target win32-arm64node scripts/verify-vsix.mjs win32-arm64@img/sharp-win32-arm64 ✓🤖 Generated with Claude Code