From 21db97c77d37d0bed2e8c40c122353b92daeb066 Mon Sep 17 00:00:00 2001 From: Hajime Tazaki Date: Fri, 9 Jun 2023 10:31:26 +0900 Subject: [PATCH] lkl: fix openvpn installation issue on windows CI The windows runner requires to install openvpn as the test uses windows tap device. But the installation step has been broken, probablly due to the changes in the windows runner of github actions. This commit fixes this issue by changing the installation with the other way. Signed-off-by: Hajime Tazaki --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7aa827f7f0d2d5..f7466f805c7414 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,11 +74,15 @@ jobs: run: pip install yamlish junit-xml - name: Install openvpn if: runner.os == 'Windows' - shell: msys2 {0} + shell: pwsh run: | curl -L -O https://swupdate.openvpn.org/community/releases/OpenVPN-2.5.3-I601-amd64.msi - cmd.exe /c "start /wait msiexec /i OpenVPN-2.5.3-I601-amd64.msi ADDLOCAL=OpenVPN,Drivers.TAPWindows6,Drivers /qn /l*v c:\\msilog.txt" - cat c:\\msilog.txt + $file = "OpenVPN-2.5.3-I601-amd64.msi" + $log = "install.log" + $procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru + $procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru + $procMain.WaitForExit() + $procLog.Kill() - name: Partial Clone if: runner.os == 'Windows' shell: msys2 {0}