File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -331,11 +331,17 @@ jobs:
331331 choco install openssl --version=3.1.1
332332 IF EXIST "c:\\Program Files\\OpenSSL-Win64" (move "c:\\Program Files\\OpenSSL-Win64" "c:\\OpenSSL-Win64") ELSE (move "c:\\Program Files\\OpenSSL" "c:\\OpenSSL-Win64")
333333
334+ - name : Identify the runner image
335+ id : image
336+ env :
337+ WSLENV : GITHUB_OUTPUT/p:ImageOS
338+ run : echo "os=${ImageOS:-unknown}" >> "$GITHUB_OUTPUT"
339+
334340 - name : Cache wxWidgets
335341 uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
336342 with :
337343 path : wxWidgets
338- key : wxWidgets-${{ env.WXWIDGETS_VERSION }}-${{ runner .os }}
344+ key : wxWidgets-${{ env.WXWIDGETS_VERSION }}-${{ steps.image.outputs .os }}
339345
340346 # actions/cache on Windows sometimes does not set cache-hit even though there was one. Setting it manually.
341347 - name : Set wxWidgets cache
@@ -370,7 +376,11 @@ jobs:
370376 shell : cmd
371377 run : |
372378 cd wxWidgets\\build\\msw
373- call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\Auxiliary\\Build\\vcvars64.bat"
379+ SET VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
380+ FOR /F "delims=" %%P IN ('%VSWHERE% -latest -property installationPath') DO (
381+ SET "VCVARSALL=%%P\VC\Auxiliary\Build\vcvarsall.bat"
382+ )
383+ call "%VCVARSALL%" x64
374384 nmake TARGET_CPU=amd64 BUILD=release SHARED=0 DIR_SUFFIX_CPU= -f makefile.vc
375385
376386 - name : Download source archive
You can’t perform that action at this time.
0 commit comments