Turn off Windows Defender in temp folder on binary build workflow (#99389)

This issue starts to show up recently https://github.com/pytorch/pytorch/actions/runs/4724983231/jobs/8385139626 and I'm pretty sure that the root cause is Windows Defender as I did a similar fix on Windows CI a while ago https://github.com/pytorch/pytorch/pull/96931.  Without this, Windows binary build could fail flakily when Windows Defender chooses to delete/quarantine a file in the temp folder.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/99389
Approved by: https://github.com/weiwangmeta
This commit is contained in:
Huy Do 2023-04-18 16:45:38 +00:00 committed by PyTorch MergeBot
parent 00f76dbaaf
commit 06f19fdbe5
7 changed files with 505 additions and 202 deletions

View File

@ -46,10 +46,13 @@ concurrency:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
{%- endmacro -%}
{%- macro checkout(submodules="recursive", deep_clone=True, directory="", repository="pytorch/pytorch", branch="", checkout_pr_head=True) -%}

View File

@ -71,10 +71,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -177,10 +180,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -300,10 +306,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -407,10 +416,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -531,10 +543,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -638,10 +653,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -761,10 +779,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -867,10 +888,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -990,10 +1014,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1097,10 +1124,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1221,10 +1251,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1328,10 +1361,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1451,10 +1487,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1557,10 +1596,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1680,10 +1722,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1787,10 +1832,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1911,10 +1959,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2018,10 +2069,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2141,10 +2195,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2247,10 +2304,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2370,10 +2430,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2477,10 +2540,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2601,10 +2667,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2708,10 +2777,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.

View File

@ -70,10 +70,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -180,10 +183,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.

View File

@ -75,10 +75,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -185,10 +188,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -315,10 +321,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -425,10 +434,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -555,10 +567,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -665,10 +680,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -795,10 +813,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -905,10 +926,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1036,10 +1060,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1147,10 +1174,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1279,10 +1309,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1390,10 +1423,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1522,10 +1558,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1633,10 +1672,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1765,10 +1807,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1876,10 +1921,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2008,10 +2056,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2119,10 +2170,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2251,10 +2305,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2362,10 +2419,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2494,10 +2554,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2605,10 +2668,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2737,10 +2803,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2848,10 +2917,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.

View File

@ -70,10 +70,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -180,10 +183,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.

View File

@ -75,10 +75,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -185,10 +188,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -315,10 +321,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -425,10 +434,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -555,10 +567,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -665,10 +680,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -795,10 +813,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -905,10 +926,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1036,10 +1060,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1147,10 +1174,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1279,10 +1309,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1390,10 +1423,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1522,10 +1558,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1633,10 +1672,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1765,10 +1807,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1876,10 +1921,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2008,10 +2056,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2119,10 +2170,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2251,10 +2305,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2362,10 +2419,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2494,10 +2554,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2605,10 +2668,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2737,10 +2803,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2848,10 +2917,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.

View File

@ -71,10 +71,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -177,10 +180,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -300,10 +306,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -407,10 +416,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -531,10 +543,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -638,10 +653,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -761,10 +779,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -867,10 +888,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -990,10 +1014,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1097,10 +1124,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1221,10 +1251,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1328,10 +1361,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1451,10 +1487,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1557,10 +1596,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1680,10 +1722,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1787,10 +1832,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -1911,10 +1959,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2018,10 +2069,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2141,10 +2195,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2247,10 +2304,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2370,10 +2430,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2477,10 +2540,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2601,10 +2667,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.
@ -2708,10 +2777,13 @@ jobs:
run: |
Set-ItemProperty -Path "HKLM:\\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1
# Since it's just a defensive command, the workflow should continue even the command fails
- name: Disables Windows Defender scheduled and real-time scanning for files in pytorch directory.
- name: Disables Windows Defender scheduled and real-time scanning for files in directories used by PyTorch
shell: powershell
run: |
Add-MpPreference -ExclusionPath $(Get-Location).tostring() -ErrorAction Ignore
Add-MpPreference -ExclusionPath $(Get-Location).tostring(),$Env:TEMP -ErrorAction Ignore
# Let's both exclude the path and disable Windows Defender completely just to be sure
# that it doesn't interfere
Set-MpPreference -DisableRealtimeMonitoring $True
# NOTE: These environment variables are put here so that they can be applied on every job equally
# They are also here because setting them at a workflow level doesn't give us access to the
# runner.temp variable, which we need.