Skip to content

Commit b5432b9

Browse files
fix: windows and mac
Signed-off-by: zeph <35661622+ZephyrCodesStuff@users.noreply.github.com>
1 parent da68bb6 commit b5432b9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
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

@@ -68,7 +71,7 @@ jobs:
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

0 commit comments

Comments
 (0)