Skip to content

.github/workflows/windows.yml - fix use of vcpkg.json #11005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

MSP-Greg
Copy link
Contributor

@MSP-Greg MSP-Greg commented Jun 16, 2024

The vcpkg.json file must exist before vcpkg install is run, and the command must run in the file's directory.

EDIT: Sorry for the force push (double CI runs).

vcpkg install will not upgrade packages, and vcpkg upgrade will not upgrade packages that are not installed.

Since users working in a fork may not have vcpkg cache files, so the packages need to be installed. A repo with caches may need some or all of the packages to be upgraded if vcpkg.json is updated with a more recent commit SHA. Hence, both commands are needed...

@MSP-Greg MSP-Greg force-pushed the 00-fix-vcpkg.json branch 2 times, most recently from 8ed2684 to 0881297 Compare June 16, 2024 14:39
The vcpkg.json file must exist before `vcpkg install` is run
@MSP-Greg MSP-Greg force-pushed the 00-fix-vcpkg.json branch from 0881297 to 7994a34 Compare June 16, 2024 14:49
@MSP-Greg
Copy link
Contributor Author

Currently the windows.yml workflow has a 'Install libraries with vcpkg' step. This can be verbose.

Added a 'List vcpkg libraries' step that logs the library packages and their versions. There is a concern that library package upgrades may cause CI failures, and placing the info in a separate step makes it easy to compare package versions.

@MSP-Greg MSP-Greg changed the title .github/workflows/windows.yml - fix use of vcpkg,json .github/workflows/windows.yml - fix use of vcpkg.json Jun 16, 2024
@MSP-Greg
Copy link
Contributor Author

Closing in favor of #11014

@MSP-Greg MSP-Greg closed this Jun 18, 2024
@MSP-Greg MSP-Greg deleted the 00-fix-vcpkg.json branch June 18, 2024 20:19
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