Skip to content

Re-enable builds and tests on Windows - #1454

Merged
hsutter merged 8 commits into
hsutter:mainfrom
jarzec:ci-reenable-windows-build
Oct 28, 2026
Merged

hsutter merged 8 commits into
hsutter:mainfrom
jarzec:ci-reenable-windows-build

Conversation

@jarzec

@jarzec jarzec commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Windows builds and regression test were disabled in #1442 due to a compiler error in MSVC 2022.
The windows-2025 GitHub runners now use MSVC 2026 which does not have the bug.
This PR re-enables the builds/tests on Windows using the new available runner setup.
At the same time small improvements were implemented in the regression-tests.yaml and build-cppfront.yaml workflow files run-tests.sh script.

Comment on lines -77 to -78
- name: Prepare compilers - macOS
if: matrix.os == 'macos-13'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The MacOS 13 compiler prep was a leftover (effectively dead code) from the clean-up in #1442.

- name: Prepare compilers - macOS
if: matrix.os == 'macos-13'
- name: Prepare compiler - Clang 19
if: matrix.os == 'ubuntu-24.04' && startsWith(matrix.compiler, 'clang')

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This excludes the unnecessary Clang installation for the GCC runs.

Comment on lines +83 to +87
- name: Set up MSVC - Windows
if: startsWith(matrix.os, 'windows')
uses: ilammy/msvc-dev-cmd@v1
with:
vsversion: ${{ matrix.vs_version }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is a cleaner setup of the MSVC environment with allows the Linux/MacOs step and the Windows step to be combined below.

Comment on lines -97 to -100
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && ^
git config --local core.autocrlf false && ^
cd regression-tests && ^
bash run-tests.sh -c ${{ matrix.compiler }} -s ${{ matrix.cxx_std }} -d ${{ matrix.stdlib }} -l ${{ matrix.os }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is replaced by the use of ilammy/msvc-dev-cmd@v1 above

@jarzec jarzec changed the title Re-enable windows build Re-enable builds and tests on Windows Oct 27, 2026
@hsutter
hsutter merged commit aa67822 into hsutter:main Oct 28, 2026
26 checks passed
@hsutter

hsutter commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Thanks!

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