diff --git a/appveyor.yml b/appveyor.yml index 10ba9090c..160d46564 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -53,6 +53,8 @@ clone_script: Write-Host "[ OK ]" -ForegroundColor Green } + $env:wsl_installed = false + $WSLjob = Start-Job -Name WSLInstall -ScriptBlock { Function WSLExec($Text, $Cmd) { Write-Host "$Text" @@ -68,6 +70,7 @@ clone_script: WSLExec "WSL install..." "sudo apt-get -y install --reinstall --no-install-recommends git ca-certificates build-essential pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev qtbase5-dev cmake 1>/dev/null" WSLExec "WSL QT fix..." "sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5" Add-AppveyorMessage -Message "WSL setup took $(([System.Environment]::TickCount-$WSLInstallTime) / 1000) sec" -Category Information + $env:wsl_installed = true } $env:PSInstallTime=[System.Environment]::TickCount @@ -235,9 +238,9 @@ build_script: } #WSL: wait for installation to finish - Receive-Job -Wait -Name WSLInstall -ErrorAction SilentlyContinue - - Add-AppveyorMessage -Message "WSL start" -Category Information + while(!$env:wsl_installed) { + Start-Sleep -s 5 + } #Windows Subsystem for Linux (WSL) Write-Host "---------- WSL make ----------" -ForegroundColor Yellow