Skip to content

ci: remove unused Windows ninja install and modernize CMake invocation - #2846

Merged
sbc100 merged 4 commits into
WebAssembly:mainfrom
kevmoo:win-ninja-build
Sep 15, 2026
Merged

sbc100 merged 4 commits into
WebAssembly:mainfrom
kevmoo:win-ninja-build

Conversation

@kevmoo

@kevmoo kevmoo commented Sep 6, 2026

Copy link
Copy Markdown
Contributor
  • Remove the unused choco install ninja step on windows-latest (added in a08df5c9 but never used since Windows CMake defaults to Visual Studio).
  • Modernize CMake configuration across all platforms by using -S . -B out instead of manually creating out/ and setting working-directory: out.

Split out from #2717.

@sbc100

sbc100 commented Sep 14, 2026

Copy link
Copy Markdown
Member

IIRC the main thing this change does is convert the windows build to use Ninja. Previously we were using the cmake default which on windows means Visual Studio.

Are we sure we want to use Ninja on Windows rather than Visual Studio.. its seems fine I guess (since the underlying compiler is still MSVC), but most windows users will use Visual Studio I imagine?

In any case the Fix the Windows build step missing the -G Ninja part of the description seem wrong. Can you update that?

@kevmoo kevmoo changed the title ci: Windows Ninja build fix and MSVC updates ci: remove unused Windows ninja install and modernize CMake invocation Sep 14, 2026
@kevmoo

kevmoo commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

Good catch! The only reason I originally added -G Ninja on Windows was because choco install ninja was already present in build.yml (from a08df5c9), so I assumed Ninja was intended on Windows too.

Keeping the default Visual Studio generator on Windows makes much more sense since that's what Windows users actually use. Updated this PR to:

  • Keep the default Visual Studio CMake generator on Windows (reverting the Ninja/MSVC workarounds).
  • Remove the unused choco install ninja step on Windows.
  • Keep the -S . -B out CMake modernization across all platforms.

Comment thread .github/workflows/build.yml Outdated
@sbc100

sbc100 commented Sep 15, 2026

Copy link
Copy Markdown
Member

lgtm.

Can you update the PR description to be the one you want to use when this lands. i.e. maybe remove the "Keep the default Visual Studio.." part?

@kevmoo

kevmoo commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Updated the step name to cmake version and updated the PR description for landing—thanks!

@sbc100
sbc100 enabled auto-merge (squash) September 15, 2026 17:35
@sbc100
sbc100 disabled auto-merge September 15, 2026 18:40
@sbc100
sbc100 merged commit 9e2f457 into WebAssembly:main Sep 15, 2026
17 checks passed
@kevmoo
kevmoo deleted the win-ninja-build branch September 15, 2026 18:42
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