Skip to content

Commit

Permalink
Debug via RDP
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Oct 10, 2024
1 parent b90bc4b commit 543970e
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ jobs:
shell: pwsh
run: python runtests.py
# Enable this to get RDP access to the worker.
# - name: Download
# # if: ${{ failure() }}
# run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
# - name: Extract
# # if: ${{ failure() }}
# run: Expand-Archive ngrok.zip
# - name: Auth
# # if: ${{ failure() }}
# run: .\ngrok\ngrok.exe authtoken 1raaG4z7gsaCRlLw8cRkUWW6ItF_2LWTUFxXwd6UeeJNAAAci
# - name: Enable TS
# # if: ${{ failure() }}
# run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
# - run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# # if: ${{ failure() }}
# - run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
# # if: ${{ failure() }}
# - run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
# # if: ${{ failure() }}
# - name: Create Tunnel
# # if: ${{ failure() }}
# run: .\ngrok\ngrok.exe tcp 3389
- name: Download
# if: ${{ failure() }}
run: Invoke-WebRequest https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-amd64.zip -OutFile ngrok.zip
- name: Extract
# if: ${{ failure() }}
run: Expand-Archive ngrok.zip
- name: Auth
# if: ${{ failure() }}
run: .\ngrok\ngrok.exe authtoken 1raaG4z7gsaCRlLw8cRkUWW6ItF_2LWTUFxXwd6UeeJNAAAci
- name: Enable TS
# if: ${{ failure() }}
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
# if: ${{ failure() }}
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
# if: ${{ failure() }}
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
# if: ${{ failure() }}
- name: Create Tunnel
# if: ${{ failure() }}
run: .\ngrok\ngrok.exe tcp 3389

0 comments on commit 543970e

Please sign in to comment.