Skip to content

Commit

Permalink
Use .ps1 script to allow UDK.exe through the firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
tuokri committed Nov 14, 2023
1 parent 4cbd613 commit 44c373e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/udk-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,8 @@ jobs:
run: .\tests\UDKTests\install_vcredist.ps1
if: matrix.os != 'self-hosted'

- name: Allow UDK.exe Inbound Traffic
run: New-NetFirewallRule -DisplayName "UDK.exe Inbound" -Direction Inbound -Program
".\tests\UDKTests\UDK-Lite\Binaries\Win64\UDK.exe" -Action Allow
- name: Allow UDK.exe Outbound Traffic
run: New-NetFirewallRule -DisplayName "UDK.exe Outbound" -Direction Outbound -Program
".\tests\UDKTests\UDK-Lite\Binaries\Win64\UDK.exe" -Action Allow
- name: Allow UDK.exe Firewall Traffic
run: .\tests\UDKTests\allow_udk_fw.ps1

- name: Run UDK build and test script
timeout-minutes: 1
Expand Down
3 changes: 3 additions & 0 deletions tests/UDKTests/allow_udk_fw.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$UDKPath = "$PSScriptRoot\UDKTests\UDK-Lite\Binaries\Win64\UDK.exe"
New-NetFirewallRule -DisplayName "UDK.exe Outbound" -Direction Outbound -Program $UDKPath -Action Allow
New-NetFirewallRule -DisplayName "UDK.exe Inbound" -Direction Inbound -Program $UDKPath -Action Allow

0 comments on commit 44c373e

Please sign in to comment.