fix: use oxidize-rb/actions for Ruby + Rust CI setup on Windows#420
Merged
Conversation
Replace separate ruby/setup-ruby + dtolnay/rust-toolchain with oxidize-rb/actions/setup-ruby-and-rust which properly handles the MSYS2 PATH pollution that causes rb-sys/bindgen to fail on Windows. SDL2 is still installed via msys2/setup-msys2 (before oxidize-rb), with paths added separately after oxidize-rb manages PATH ordering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
🚀 Preview deployed: https://smalruby.jp/smalruby3-editor/fix/gem-build-oxidize-rb/ |
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
oxidize-rb/actions/setup-ruby-and-rustを導入し、Windows での rb-sys/bindgen ビルド失敗を解決。根本原因:
ruby/setup-rubyが MSYS2 を PATH に追加 → bindgen の clang が MSVC ヘッダではなく MSYS2 ヘッダを参照 →strings.hnot found解決:
oxidize-rb/actionsは rb-sys 開発陣が提供する公式アクションで、MSYS2 の PATH 干渉を適切にハンドリングする。変更点
ruby/setup-ruby+dtolnay/rust-toolchain→oxidize-rb/actions/setup-ruby-and-rustmsys2/setup-msys2で先にインストール、oxidize-rbのセットアップ後に MSYS2 の SDL2 パスを追加bundle exec rubyに修正Related Issues
Follow-up to #416, #418, #419