File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 5353 - name : Build Windows
5454 if : runner.os == 'Windows'
5555 run : ./build.libgit2.ps1 ${{ matrix.param }}
56- - name : Install macOS dependencies
57- if : runner.os == 'macOS'
58- run : brew install libssh2
5956 - name : Build macOS
6057 if : runner.os == 'macOS'
6158 run : ./build.libgit2.sh
Original file line number Diff line number Diff line change @@ -106,8 +106,9 @@ function Install-Libssh2($triplet) {
106106 if (-not (Test-Path $vcpkg )) {
107107 throw " Error: vcpkg not found at $Env: VCPKG_INSTALLATION_ROOT "
108108 }
109- Write-Output " Installing libssh2 for $triplet via vcpkg..."
110- Run- Command - Fatal { & $vcpkg install " libssh2:$triplet " }
109+ Write-Host " Installing libssh2 for $triplet via vcpkg..."
110+ & $vcpkg install " libssh2:$triplet "
111+ if ($LastExitCode -ne 0 ) { throw " vcpkg install failed" }
111112
112113 $installedDir = Join-Path $Env: VCPKG_INSTALLATION_ROOT " installed\$triplet "
113114 $libssh2Dll = Join-Path $installedDir " bin\libssh2.dll"
You can’t perform that action at this time.
0 commit comments