github: cmake suddenly defaults to ninja, explicitly define VS as generator
authorMichael Wallner <mike@php.net>
Fri, 30 Jul 2021 06:07:24 +0000 (08:07 +0200)
committerMichael Wallner <mike@php.net>
Fri, 30 Jul 2021 06:07:24 +0000 (08:07 +0200)
.github/workflows/cmake-build-ci.gen
.github/workflows/cmake-build-ci.yml

index e76d433fcef54ab26742c87ebcc51574cdf32d52..50e1e50552fb873f9fe1ba404891bf68786fd228 100755 (executable)
@@ -111,6 +111,7 @@ function steps_setenv($os_vnd, $splat_map = null) {
         run: |
           echo "c:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
           echo "c:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo 'CMAKE_GENERATOR=Visual Studio 16 2019' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
       - name: Prepare environment (MinGW)
         if: env.CC_VND == 'mingw'
         run: |
index 0dd0a4de0006121e91484bdeb71b778202ff88d5..7ad9ad2506401696552242197e924c44cc0dbf6b 100644 (file)
@@ -374,6 +374,7 @@ jobs:
         run: |
           echo "c:\msys64\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
           echo "c:\msys64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+          echo 'CMAKE_GENERATOR=Visual Studio 16 2019' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
       - name: Prepare environment (MinGW)
         if: env.CC_VND == 'mingw'
         run: |