From 0817bf9ab63a2da2fdad365eeb42868af26128e0 Mon Sep 17 00:00:00 2001 From: freya0926 <299410795+freya0926@users.noreply.github.com> Date: Tue, 7 Jul 2026 05:02:24 +0900 Subject: [PATCH] ci: exclude build directories from Windows Defender in minimal CI The main CI's Windows job is the only long-running Windows workflow without Defender exclusions; java, nodejs, python-wheel, extensions, and precompiled-bin workflows already apply them. Also excludes the ccache dirs (D:\c, D:\t) used by this job. Fixes #61 Co-Authored-By: Claude Fable 5 --- .github/workflows/ci-workflow.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 596fb6249..58729192a 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -202,6 +202,14 @@ jobs: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force git config --system core.longpaths true + - name: Configure Windows Defender exclusions (Windows) + if: matrix.platform == 'windows' + shell: pwsh + run: | + Add-MpPreference -ExclusionPath "${{ github.workspace }}" + Add-MpPreference -ExclusionPath "D:\c" + Add-MpPreference -ExclusionPath "D:\t" + - name: Install uv run: pip3 install uv