Skip to content

Commit 55631e3

Browse files
committed
Windows fix
1 parent 850ab5d commit 55631e3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ jobs:
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

build.libgit2.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)