Skip to content

Try to fix Windows CI (GitHub Actions -- vcpkg manifest mode)#518

Open
stephengtuggy wants to merge 8 commits into
boostorg:developfrom
stephengtuggy:fix/windows-ci
Open

Try to fix Windows CI (GitHub Actions -- vcpkg manifest mode)#518
stephengtuggy wants to merge 8 commits into
boostorg:developfrom
stephengtuggy:fix/windows-ci

Conversation

@stephengtuggy

@stephengtuggy stephengtuggy commented Jun 4, 2026

Copy link
Copy Markdown

Fixes #514 (hopefully)

@stephengtuggy stephengtuggy changed the title Create vcpkg.json Try to fix Windows CI (GitHub Actions -- vcpkg manifest mode) Jun 4, 2026
@stephengtuggy stephengtuggy marked this pull request as ready for review June 4, 2026 00:34
@stefanseefeld

Copy link
Copy Markdown
Member

thanks @stephengtuggy for the patch ! It's definitely a step in the right direction, but apparently not yet complete (the build fails).

@stephengtuggy

Copy link
Copy Markdown
Author

thanks @stephengtuggy for the patch ! It's definitely a step in the right direction, but apparently not yet complete (the build fails).

@stefanseefeld you're welcome. I think I see what the problem is. I neglected to update the include directory passed to the faber commands. That should be fixed now.

@stephengtuggy

Copy link
Copy Markdown
Author

Nope, still not right. And unfortunately, this may not be trivial to fix. I'm not sure if there is a singular Boost include directory that can be passed to faber. I think it may be more like a different include directory for each Boost component. How to handle this situation?

@stephengtuggy

Copy link
Copy Markdown
Author

To eliminate a variable, I am going back to the same vcpkg baseline in the manifest file as was used for vcpkgGitCommitId prior to this PR. Let's see if that helps.

Comment thread .github/workflows/test-windows.yml Outdated
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
runVcpkgInstall: true
- name: List directory contents
run: Get-ChildItem "${{ github.workspace }}/vcpkg" -Recurse -Force -File -Filter 'config.hpp'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps if you use -User . to start looking in the local directory instead of $github.workspace/vcpkg ?
Alternatively, I see that the install root can be set via the vcpkgArguments: '--x-manifest-root=${{ github.workspace }}/vcpkg' directive.

@stephengtuggy stephengtuggy Jun 18, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command simply searches the <github workspace>/vcpkg directory and all subdirectories for a file named config.hpp. It is literally the equivalent of find "${{ github.workspace}}/vcpkg" -iname 'config.hpp' -type f. And it's not finding the file anywhere! I don't understand what is going on here. Why would this file not be present?

I'm not familiar with -User . in conjunction with the Get-ChildItem command. What would that do?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the install root can be set using the vcpkgArguments parameter, but I'm not sure it's best practice to do so.

@stephengtuggy

Copy link
Copy Markdown
Author

It occurs to me that in my other projects that use vcpkg, I generally set the VCPKG_ROOT environment variable explicitly. This might be important. Trying it now.

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.

github actions are outdated

2 participants