From bcce4e9b9b83ca12c92f586d6af2dfc53e915282 Mon Sep 17 00:00:00 2001 From: "M. Galib Uludag" Date: Tue, 21 May 2024 00:21:11 +0300 Subject: [PATCH] Create cf-win.msvc.yml --- .github/workflows/cf-win.msvc.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cf-win.msvc.yml diff --git a/.github/workflows/cf-win.msvc.yml b/.github/workflows/cf-win.msvc.yml new file mode 100644 index 0000000..8f9d694 --- /dev/null +++ b/.github/workflows/cf-win.msvc.yml @@ -0,0 +1,28 @@ +name: compiler-explorer-win-msvc-cf + +on: [push, workflow_dispatch] + +jobs: + build: + + runs-on: windows-latest + steps: + -run: choco install cloudflared + - 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: | + cloudflared tunnel --url http://localhost:10240 + Start-Process -FilePath "powershell.exe" -ArgumentList "C:\setup-ce.ps1" + $Client = New-Object System.Net.Sockets.TcpClient + while($true){ try{ $Client.Connect("localhost", 10240) }catch{} if($Client.Connected){ break } Start-Sleep -s 1 } + Start-Sleep -s 3 + cloudflared tunnel --url http://localhost:10240 +