From 9f979c33f4c33a6afeec8357324638c97b93499a Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Wed, 30 Oct 2019 09:49:57 +0200 Subject: [PATCH] CI: Fix builds failing because of missing v140 toolset and SDK on dx12 sample. (cherry picked from commit 8d91a77e9b42eac7a6d7d28c8563ccc468842e8b) --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54d267aeb..932c6be25 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,11 +15,14 @@ jobs: - name: Fix Projects shell: powershell run: | - # Replace v110 toolset with v142. Only v141 and v142 toolsets are available on CI workers. - # Replace 8.1 platform sdk with 10.0.18362.0. Workers do not contain legacy SDKs. # WARNING: This will need updating if toolset/sdk change in project files! gci -recurse -filter "*.vcxproj" | ForEach-Object { - (Get-Content $_.FullName) -Replace "v110","v142" -Replace "8.1","10.0.18362.0" | Set-Content -Path $_.FullName + # Fix SDK and toolset for most samples. + (Get-Content $_.FullName) -Replace "v110","v142" | Set-Content -Path $_.FullName + (Get-Content $_.FullName) -Replace "8.1","10.0.18362.0" | Set-Content -Path $_.FullName + # Fix SDK and toolset for samples that require newer SDK/toolset. At the moment it is only dx12. + (Get-Content $_.FullName) -Replace "v140","v142" | Set-Content -Path $_.FullName + (Get-Content $_.FullName) -Replace "10.0.14393.0","10.0.18362.0" | Set-Content -Path $_.FullName } - name: Build x86