Since Visual Studio 2026 replaced 2022 we could not use the window-latest runner, and had to downgrade to windows-2022 runner.
In release 1.5.5 this should have been fixed by adding the installation folder of 2026:
see: #218
However, we still see the exact same error when using the 1.5.5 version.
We added an extra step in our workflow to log the existence of the Visual Studio folders and confirmed that the correct folders are available:
- name: Check Visual Studio version
shell: pwsh
run: |
Test-Path 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise'
Test-Path 'C:\Program Files\Microsoft Visual Studio\18\Enterprise'
Errors:
Error: Failed to find 'vcvarsall.bat' in a Visual Studio installation.
Please make sure that Visual Studio 2022 version 17.1.0 or later is installed on your system. You can download it at
Error: Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.11.3:compile-no-fork (build-native) on project XXX: Execution of C:\hostedtoolcache\windows\graalvm-jdk-21_windows-x64_bin\21.0.0\x64\graalvm-jdk-21.0.11+9.1\bin\native-image.cmd @target\tmp\native-image-190659201306281722.args xxxxxxxxxx returned non-zero result -> [Help 1]
Since Visual Studio 2026 replaced 2022 we could not use the window-latest runner, and had to downgrade to windows-2022 runner.
In release 1.5.5 this should have been fixed by adding the installation folder of 2026:
see: #218
However, we still see the exact same error when using the 1.5.5 version.
We added an extra step in our workflow to log the existence of the Visual Studio folders and confirmed that the correct folders are available:
Errors:
Error: Failed to find 'vcvarsall.bat' in a Visual Studio installation.
Please make sure that Visual Studio 2022 version 17.1.0 or later is installed on your system. You can download it at
Error: Failed to execute goal org.graalvm.buildtools:native-maven-plugin:0.11.3:compile-no-fork (build-native) on project XXX: Execution of C:\hostedtoolcache\windows\graalvm-jdk-21_windows-x64_bin\21.0.0\x64\graalvm-jdk-21.0.11+9.1\bin\native-image.cmd @target\tmp\native-image-190659201306281722.args xxxxxxxxxx returned non-zero result -> [Help 1]