Skip to content

ci: Manually set up VS developer shell#628

Merged
arch1t3cht merged 1 commit into
masterfrom
msvc-devenv
Jul 2, 2026
Merged

ci: Manually set up VS developer shell#628
arch1t3cht merged 1 commit into
masterfrom
msvc-devenv

Conversation

@arch1t3cht

Copy link
Copy Markdown
Member

The ilammy/msvc-dev-cmd action has been unmaintained for a couple of years now, and GitHub has been showing warnings due to it using a deprecated Node version.

Some forks exist, but in light of GHA supply chain attacks having become an almost weekly occurrence, it's probably safer to just set up the VS developer shell manually, which only takes a couple of lines of magic code.

This is mostly copied from libass's workflow:
https://github.com/libass/libass/blob/0.17.5/.github/workflows/meson.yml

The ilammy/msvc-dev-cmd action has been unmaintained for a couple of
years now, and GitHub has been showing warnings due to it using a
deprecated Node version.

Some forks exist, but in light of GHA supply chain attacks having become
an almost weekly occurrence, it's probably safer to just set up the VS
developer shell manually, which only takes a couple of lines of magic
code.

This is mostly copied from libass's workflow:
https://github.com/libass/libass/blob/0.17.5/.github/workflows/meson.yml
@arch1t3cht arch1t3cht merged commit 316daeb into master Jul 2, 2026
7 checks passed
@arch1t3cht arch1t3cht deleted the msvc-devenv branch July 2, 2026 16:21
@moi15moi

moi15moi commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Why do you even need to do that?
The meson flag --vsenv doesnt suit your need?

@arch1t3cht

Copy link
Copy Markdown
Member Author

I didn't know about that flag, but I think I still prefer setting up the developer shell globally. For example, meson is not only called directly in the workflow file, but also from the installer setup script when building ffi-experiments. Passing --vsenv there would require additional plumbing of flags.

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.

2 participants