Skip to content

Commit 1f04880

Browse files
hsbtclaude
andcommitted
Load C extensions linked to vcpkg libraries on mswin in CI
Building fiddle succeeded even while a zlib extension linked to libz.dll could not be loaded. The step activates the installed zlib explicitly, because Ruby also ships a default zlib built against its own z.dll. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0d08440 commit 1f04880

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/test.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ jobs:
8686
- name: C extension test
8787
run: gem install json -v 2.2.0
8888
- name: C extension test with vcpkg libraries (mswin)
89-
run: gem install fiddle -v 1.1.8
89+
run: gem install fiddle:1.1.8 zlib:3.2.4
90+
if: matrix.ruby == 'mswin'
91+
- name: Load C extensions linked to vcpkg libraries (mswin)
92+
run: ruby -rfiddle -e 'gem %q(zlib), %q(3.2.4); require %q(zlib); p Zlib.crc32(%q(a))'
9093
if: matrix.ruby == 'mswin'
9194
- run: bundle --version
9295
# This step is redundant with `bundler-cache: true` but is there to check a redundant `bundle install` still works

0 commit comments

Comments
 (0)