diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 36f7c5a4fc..76c5eb19d5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -933,6 +933,10 @@ jobs: run: | if [ '${{ matrix.openssh }}' = '' ]; then # MSYS2 openssh /usr/bin/pacman --noconfirm --noprogressbar --sync --needed openssh + elif [ '${{ matrix.openssh }}' = 'OpenSSH-Windows-builtin' ]; then + # https://learn.microsoft.com/windows-server/administration/openssh/openssh_install_firstuse + pwsh -Command 'Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0' + pwsh -Command 'Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0' else # OpenSSH-Windows cd /d || exit 1 curl --disable --fail --silent --show-error --connect-timeout 15 --max-time 60 --retry 3 \