diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 045d058..3eea8f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,12 @@ jobs: - name: Disable Windows Defender real-time monitoring if: runner.os == 'Windows' shell: powershell - run: Set-MpPreference -DisableRealtimeMonitoring $true + run: | + try { + Set-MpPreference -DisableRealtimeMonitoring $true -ErrorAction Stop + } catch { + Write-Warning "Could not disable Windows Defender real-time monitoring: $_" + } - name: Build run: go build -v ./...