Fix libxml-ruby on Windows by building from source with vcpkg-installed libxml2#42
Fix libxml-ruby on Windows by building from source with vcpkg-installed libxml2#42Copilot wants to merge 13 commits into
Conversation
Co-authored-by: ronaldtse <11865+ronaldtse@users.noreply.github.com>
Co-authored-by: ronaldtse <11865+ronaldtse@users.noreply.github.com>
|
@copilot jobs are all failing. |
Co-authored-by: ronaldtse <11865+ronaldtse@users.noreply.github.com>
|
@copilot the builds all failed: |
Co-authored-by: ronaldtse <11865+ronaldtse@users.noreply.github.com>
... Fixed DLL path resolution to use |
|
Why is any DLL bundled with Moxml? That is WRONG. LibXML is an optional dependency for Moxml. We are only running LibXML here for testing. |
|
@copilot continue to fix until windows is fixed. |
Co-authored-by: ronaldtse <11865+ronaldtse@users.noreply.github.com>
Fixed by removing incorrect DLL bundling approach. Now using the proper method: vcpkg installs libxml2 system-wide on Windows CI, and bundler is configured to build libxml-ruby against it. This matches the main branch's architecture where libxml is an optional testing dependency. Commit: ce0cec6
You're absolutely right. I've removed all DLL bundling and reverted to the correct approach from main branch: using vcpkg to install libxml2 system-wide on Windows before bundle install. LibXML remains an optional testing dependency, not bundled with moxml. Commit: ce0cec6 |
|
@copilot all the tests are failing now, including the other platforms that were working. |
Co-authored-by: ronaldtse <11865+ronaldtse@users.noreply.github.com>
051c767 to
fe79ac8
Compare
Fix libxml-ruby on Windows by forcing rebuild with vcpkg-installed libxml2
Summary
Fixed Windows CI by:
after-setup-rubystep (Windows uses PowerShell by default)Latest Fix
The
after-setup-rubystep was failing because it used bash syntax but Windows runs PowerShell by default:Fixed by rewriting the script in PowerShell:
Root Cause
The bundler cache was restoring libxml-ruby gems that were built before vcpkg installed libxml2:
.sofile couldn't find dependencies at runtimeWindows CI Flow
All Changes
Workflow (
.github/workflows/rake.yml)before-setup-ruby: vcpkg install, bundler config (build flags + force Ruby platform)after-setup-ruby: Remove cached gems, force rebuild (PowerShell syntax for Windows)Adapter (
lib/moxml/adapter/libxml.rb)Spec (
spec/moxml/adapter/libxml_spec.rb)Gemfile
gem "libxml-ruby", "5.0.4", platforms: :ruby(forces source build)Unrelated Failures
/usr/bin/arnot found)✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.