From fc7ec34ca3bc6949f59c25f454bf3e5d2c23d1c2 Mon Sep 17 00:00:00 2001 From: Gator96100 Date: Mon, 5 Oct 2020 21:11:46 +0200 Subject: [PATCH] Fix --- appveyor.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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