Skip to content

Commit

Permalink
Update lt-win-msvc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mguludag authored May 20, 2024
1 parent e64d909 commit 92db07d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lt-win-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
- name: Run localtunnel and compiler-explorer
run: |
npm install -g localtunnel
Start-Process -FilePath "powershell.exe" -ArgumentList "C:\setup-ce.ps1" -RedirectStandardOutput $pwd\output.txt -RedirectStandardError $pwd\error.txt
while($true){ if((Get-Content $pwd\output.txt | %{$_ -match "Listening on http://localhost:10240/"}) -or (Get-Content $pwd\error.txt | %{$_ -match "Listening on http://localhost:10240/"})){ echo "Listening on http://localhost:10240/"; break } echo "no"; Start-Sleep -s 1 }
Start-Process -FilePath "powershell.exe" -ArgumentList "C:\setup-ce.ps1"
$connection = New-Object System.Net.Sockets.TcpClient(localhost, 10240)
while(-Not $connection.Connected){ Start-Sleep -s 1 }
Start-Sleep -s 3
lt --port 10240

0 comments on commit 92db07d

Please sign in to comment.