Skip to content

Commit 00c24ac

Browse files
authored
ci : fix line breaks on windows builds (#11409)
* ci : fix line breaks on windows builds * cont : another try * ci : fix powershell line breaks
1 parent 466ea66 commit 00c24ac

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -916,10 +916,10 @@ jobs:
916916
shell: cmd
917917
run: |
918918
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
919-
cmake -S . -B build -G "Ninja Multi-Config" \
920-
-DLLAMA_BUILD_SERVER=ON \
921-
-DGGML_NATIVE=OFF \
922-
-DGGML_CUDA=ON \
919+
cmake -S . -B build -G "Ninja Multi-Config" ^
920+
-DLLAMA_BUILD_SERVER=ON ^
921+
-DGGML_NATIVE=OFF ^
922+
-DGGML_CUDA=ON ^
923923
-DGGML_RPC=ON
924924
set /A NINJA_JOBS=%NUMBER_OF_PROCESSORS%-1
925925
cmake --build build --config Release -j %NINJA_JOBS% -t ggml
@@ -1073,7 +1073,12 @@ jobs:
10731073
run: |
10741074
$env:HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)
10751075
$env:CMAKE_PREFIX_PATH="${env:HIP_PATH}"
1076-
cmake -G "Unix Makefiles" -B build -S . -DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" -DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" -DGGML_HIP=ON -DCMAKE_BUILD_TYPE=Release -DGGML_RPC=ON
1076+
cmake -G "Unix Makefiles" -B build -S . `
1077+
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
1078+
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1079+
-DCMAKE_BUILD_TYPE=Release `
1080+
-DGGML_HIP=ON `
1081+
-DGGML_RPC=ON
10771082
cmake --build build -j ${env:NUMBER_OF_PROCESSORS}
10781083
10791084
windows-latest-cmake-hip-release:
@@ -1111,7 +1116,13 @@ jobs:
11111116
run: |
11121117
$env:HIP_PATH=$(Resolve-Path 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' | split-path | split-path)
11131118
$env:CMAKE_PREFIX_PATH="${env:HIP_PATH}"
1114-
cmake -G "Unix Makefiles" -B build -S . -DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" -DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" -DGGML_HIP=ON -DCMAKE_BUILD_TYPE=Release -DAMDGPU_TARGETS=${{ matrix.gpu_target }} -DGGML_RPC=ON
1119+
cmake -G "Unix Makefiles" -B build -S . `
1120+
-DCMAKE_C_COMPILER="${env:HIP_PATH}\bin\clang.exe" `
1121+
-DCMAKE_CXX_COMPILER="${env:HIP_PATH}\bin\clang++.exe" `
1122+
-DCMAKE_BUILD_TYPE=Release `
1123+
-DAMDGPU_TARGETS=${{ matrix.gpu_target }} `
1124+
-DGGML_HIP=ON `
1125+
-DGGML_RPC=ON
11151126
cmake --build build -j ${env:NUMBER_OF_PROCESSORS}
11161127
md "build\bin\rocblas\library\"
11171128
cp "${env:HIP_PATH}\bin\hipblas.dll" "build\bin\"

0 commit comments

Comments
 (0)