Update lt-win-msvc.yml #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: compiler-explorer-win-msvc-lt | |
on: [push, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- run: Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False | |
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "Compiler-Explorer" -Force) | |
- run: Invoke-WebRequest https://raw.githubusercontent.com/mguludag/github-actions-run-compiler-explorer/main/setup-ce.ps1 -OutFile C:\setup-ce.ps1 | |
- run: powercfg -setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c SUB_PROCESSOR PROCTHROTTLEMAX 80 | |
- run: powercfg -setdcvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c SUB_PROCESSOR PROCTHROTTLEMAX 80 | |
- name: Run localtunnel and compiler-explorer | |
run: | | |
npm install -g localtunnel | |
Start-Process -FilePath "powershell.exe" -ArgumentList "C:\setup-ce.ps1" | |
while($true){ try { New-Object System.Net.Sockets.TcpClient("localhost", 10240); break } Start-Sleep -s 1 } | |
Start-Sleep -s 3 | |
lt --port 10240 | |