File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 shell : pwsh
4545 run : |
4646 Write-Host "CMake args: $env:MATRIX_CMAKE_ARGS"
47- cmake -S parsers/cpp -B build $env:MATRIX_CMAKE_ARGS
47+ # split the space-separated args into an array so PowerShell passes them as separate arguments
48+ $parts = @()
49+ if ($env:MATRIX_CMAKE_ARGS) { $parts = $env:MATRIX_CMAKE_ARGS -split ' ' }
50+ & cmake -S parsers/cpp -B build -G "Visual Studio 17 2022" @parts
4851 env :
4952 MATRIX_CMAKE_ARGS : ${{ matrix.cmake_args }}
5053
6871 run : |
6972 echo "Ensuring CMake policy flags are applied and building"
7073 cmake -S parsers/cpp -B build ${MATRIX_CMAKE_ARGS}
71- cmake --build build -- -j$(sysctl -n hw.logicalcpu)
74+ cmake ${MATRIX_CMAKE_ARGS} --build build -- -j$(sysctl -n hw.logicalcpu)
7275 env :
7376 MATRIX_CMAKE_ARGS : ${{ matrix.cmake_args }}
7477
You can’t perform that action at this time.
0 commit comments