Skip to content

Use up-to-date dependencies #8

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

Merged
merged 8 commits into from
Aug 1, 2025
Merged

Conversation

GeorgeK1ng
Copy link
Contributor

Improved building mechanism to use overlays for required components.

Now are used latest packages except Boost for Windows 7 and YASM for ARM64 dependencies.

Comment on lines 85 to 91
if [ "${{ matrix.platform }}" == "msvc-arm64" ]; then
./vcpkg.exe install yasm --triplet "${{ matrix.triplet }}" --overlay-ports=vcmi-overlay-yasm
OVERLAY="--overlay-ports=vcmi-overlay-yasm"
else
./vcpkg.exe install yasm --triplet "${{ matrix.triplet }}" --overlay-ports=vcmi-overlay-boost
OVERLAY="--overlay-ports=vcmi-overlay-boost"
fi

Choose a reason for hiding this comment

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

Suggested change
if [ "${{ matrix.platform }}" == "msvc-arm64" ]; then
./vcpkg.exe install yasm --triplet "${{ matrix.triplet }}" --overlay-ports=vcmi-overlay-yasm
OVERLAY="--overlay-ports=vcmi-overlay-yasm"
else
./vcpkg.exe install yasm --triplet "${{ matrix.triplet }}" --overlay-ports=vcmi-overlay-boost
OVERLAY="--overlay-ports=vcmi-overlay-boost"
fi
if [ "${{ matrix.platform }}" == "msvc-arm64" ]; then
OVERLAY="--overlay-ports=vcmi-overlay-yasm"
else
OVERLAY="--overlay-ports=vcmi-overlay-boost"
fi
./vcpkg.exe install yasm --triplet "${{ matrix.triplet }}" $OVERLAY

Choose a reason for hiding this comment

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

you can also put OVERLAY to GITHUB_ENV to avoid computing it again in Export packages

Copy link
Member

Choose a reason for hiding this comment

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

Or we can give overlays fixed name, vcmi-overlay or whatever and instead add packages to overlay using architecture as condition - one step for arm64 /yasm & another for boost/amd64.

So on arm64 vcmi-overlay will contain yasm, and on amd64 - vcmi-overlay will contain boost.

With this there won't be need for OVERLAY variable

@GeorgeK1ng
Copy link
Contributor Author

GeorgeK1ng commented Aug 1, 2025

Workflow is simplified now.

@IvanSavenko IvanSavenko merged commit cc875dc into vcmi:master Aug 1, 2025
3 checks passed
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.

3 participants