Skip to content

ci: put vcpkg bin on PATH so Windows tests find the glib DLL#3

Merged
justinjoy merged 1 commit into
mainfrom
ci-windows-glib-dll-path
Jul 2, 2026
Merged

ci: put vcpkg bin on PATH so Windows tests find the glib DLL#3
justinjoy merged 1 commit into
mainfrom
ci-windows-glib-dll-path

Conversation

@justinjoy

Copy link
Copy Markdown
Collaborator

Problem

libwiig links glib-2.0, and the test binaries pull it in too
(test_skeleton via wiig_dep, test_lexer directly). The vcpkg
x64-windows triplet ships glib as a DLL, so the test executables
need glib-2.0-0.dll and its dependencies on PATH at run time.
Without that, the Windows test step dies with a missing-DLL load failure
before any assertion runs.

Fix

Prepend %VCPKG_INSTALLED_DIR%\bin to PATH in the configure and
build/test steps of both Windows jobs (ci-pr.yml, ci-main.yml),
matching the proven clang-cl + vcpkg setup used by the sibling
glib-on-Windows project (wyrelog).

The compiler stays clang-cl: pure MSVC cl cannot build the glib
headers, so the MSVC-ABI-via-clang path is the supported one here.

Verification

Windows-only CI change; validated by the build-windows job on this PR.

libwiig links glib-2.0 and the test binaries (test_skeleton via wiig_dep,
test_lexer directly) pull it in too. The vcpkg x64-windows triplet ships
glib as a DLL, so the test executables need glib-2.0-0.dll and its
dependencies on PATH at run time; without it the test step dies with a
missing-DLL load failure before any assertion runs.

Prepend %VCPKG_INSTALLED_DIR%\bin to PATH in the configure and
build/test steps of both Windows jobs, matching the proven clang-cl +
vcpkg setup used by the sibling glib-on-Windows project. The compiler
stays clang-cl: pure MSVC cl cannot build the glib headers, so the
MSVC-ABI-via-clang path is the supported one here.
@justinjoy justinjoy merged commit ccb5167 into main Jul 2, 2026
3 checks passed
@justinjoy justinjoy deleted the ci-windows-glib-dll-path branch July 2, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant