Skip to content

Commit

Permalink
Create cf-win.msvc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mguludag authored May 20, 2024
1 parent 4b665ed commit bcce4e9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/cf-win.msvc.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit bcce4e9

Please sign in to comment.