4444 contents : read # This is required for actions/checkout
4545
4646 env :
47- BUILD_C_SHARP : ${{ matrix.os == 'windows -2022' && matrix.build_system == 'MSBuild' }}
47+ BUILD_C_SHARP : ${{ matrix.compiler_cxx == 'msvc -2022' && matrix.build_system == 'MSBuild' }}
4848 PYTEST_C_SHARP_ARGS : --run-c-sharp-samples --csharp-sample-dir=..\source\x64\${{ matrix.config }}
4949
5050 steps :
6969 with :
7070 target_os : windows
7171 target_arch : x64
72- cxx_compiler : ${{ matrix.os }} # os name will be transformed to MSVC name (e.g. windows-2022 -> msvc-2022)
72+ cxx_compiler : ${{ matrix.cxx_compiler }}
7373 build_config : ${{ matrix.config }}
7474 build_system : ${{ matrix.build_system }}
7575 aws_instance_type : ${{ env.AWS_INSTANCE_TYPE }}
@@ -112,19 +112,19 @@ jobs:
112112 run : C:\vcpkg\vcpkg.exe integrate install
113113
114114 - name : Restore CUDA Cache
115- if : ${{ matrix.os == 'windows-2022' }}
115+ # if: ${{ matrix.os == 'windows-2022' }}
116116 uses : actions/cache@v4
117117 id : cuda-cache
118118 with :
119119 key : cuda-${{matrix.CUDA-VERSION}}
120120 path : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA*
121121
122122 - name : Install CUDA
123- if : ${{ steps.cuda-cache.outputs.cache-hit != 'true' && matrix.os == 'windows-2022' }}
123+ if : ${{ steps.cuda-cache.outputs.cache-hit != 'true' }}
124124 run : choco install cuda --version=${{matrix.CUDA-VERSION}} --confirm
125125
126126 - name : Setup CUDA
127- if : ${{ matrix.os == 'windows-2022' }}
127+ # if: ${{ matrix.os == 'windows-2022' }}
128128 shell : bash
129129 run : |
130130 echo "CUDA_PATH=C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v${{ matrix.CUDA-MAJOR }}.${{ matrix.CUDA-MINOR }}" >> $GITHUB_ENV
@@ -133,7 +133,7 @@ jobs:
133133 echo "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v${{ matrix.CUDA-MAJOR }}.${{ matrix.CUDA-MINOR }}\\bin" >> $GITHUB_PATH
134134
135135 - name : Install Visual Studio Integration
136- if : ${{ matrix.os == 'windows-2022' }}
136+ # if: ${{ matrix.os == 'windows-2022' }}
137137 run : |
138138 $x = (dir $env:CUDA_PATH -dir -recurse -depth 2).where({$_.name -eq 'visual_studio_integration'}).fullname
139139 $y = (dir $x -dir -recurse).where({$_.name -eq 'MSBuildExtensions'}).fullname + '\*'
@@ -207,7 +207,7 @@ jobs:
207207 if errorlevel 1 exit 1
208208 cmake --version
209209 if errorlevel 1 exit 1
210- cmake -B source\TempOutput -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config}} -DMESHLIB_BUILD_GENERATED_C_BINDINGS=${{ fromJSON('["OFF", "ON"]')[inputs.mrbind_c] }}
210+ cmake -B source\TempOutput -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config}} -DMESHLIB_BUILD_GENERATED_C_BINDINGS=${{ fromJSON('["OFF", "ON"]')[inputs.mrbind_c] -DCMAKE_GENERATOR_TOOLSET=v142 }}
211211 if errorlevel 1 exit 1
212212 cmake --build source\TempOutput -j
213213 if errorlevel 1 exit 1
0 commit comments