File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,19 @@ jobs:
187187 - name : Build
188188 shell : cmd
189189 run : |
190- call "${{matrix.vc-path}}\Common7\Tools\VsDevCmd.bat" -arch=amd64
191- cmake -B source\x64\${{matrix.config}}Build -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-meshlib -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config}}
192- cmake --build source\x64\${{matrix.config}}Build -j
193- mv source\x64\${{matrix.config}}Build\bin source\x64\${{matrix.config}}
190+ if ${{ fromJSON('["$false", "$true"]')[matrix.build_system == 'CMake'] && '1==1' || '1==0' }} (
191+ call "${{matrix.vc-path}}\Common7\Tools\VsDevCmd.bat" -arch=amd64
192+ if errorlevel 1 exit 1
193+ cmake -B source\x64\${{matrix.config}}Build -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-meshlib -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config}}
194+ if errorlevel 1 exit 1
195+ cmake --build source\x64\${{matrix.config}}Build -j
196+ if errorlevel 1 exit 1
197+ mv source\x64\${{matrix.config}}Build\bin source\x64\${{matrix.config}}
198+ if errorlevel 1 exit 1
199+ ) else (
200+ msbuild -m source\MeshLib.sln -p:Configuration=${{ matrix.config }}
201+ if errorlevel 1 exit 1
202+ )
194203
195204 - name : Build .NET
196205 if : ${{ matrix.build_system == 'MSBuild' && env.BUILD_C_SHARP == 'true' }}
You can’t perform that action at this time.
0 commit comments