Skip to content

ci: exclude build directories from Windows Defender in minimal CI#661

Merged
adsharma merged 1 commit into
LadybugDB:mainfrom
freya0926:ci/windows-defender-exclusions
Jul 7, 2026
Merged

ci: exclude build directories from Windows Defender in minimal CI#661
adsharma merged 1 commit into
LadybugDB:mainfrom
freya0926:ci/windows-defender-exclusions

Conversation

@freya0926

Copy link
Copy Markdown
Contributor

Summary

Fixes #61

The Windows job in the minimal CI (ci-workflow.yml) does a full C++ build + ctest on windows-2022 and is the slowest job in the matrix, but it is the only long-running Windows workflow without Windows Defender exclusions — java-workflow.yml, nodejs-workflow.yml, python-wheel-workflow.yml, build-extensions.yml, and precompiled-bin-workflow.yml already apply them.

What's changed

Added a Configure Windows Defender exclusions (Windows) step (pwsh, guarded by matrix.platform == 'windows' like the adjacent Enable long paths step) using the snippet from #61:

  • ${{ github.workspace }} — covers the build directory
  • $env:TEMP
  • D:\c and D:\t — the ccache cache/temp dirs this job configures, which see heavy small-file I/O

This completes Defender-exclusion coverage across all Windows CI workflows.

🤖 Generated with Claude Code

@freya0926 freya0926 force-pushed the ci/windows-defender-exclusions branch from d44a562 to 2dcc047 Compare July 7, 2026 02:26
Comment thread .github/workflows/ci-workflow.yml Outdated
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 LadybugDB#61

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adsharma adsharma force-pushed the ci/windows-defender-exclusions branch from 2dcc047 to 0817bf9 Compare July 7, 2026 18:52
@adsharma adsharma merged commit 1c7a56d into LadybugDB:main Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimization: Exclude build dir from windows defender on Windows

2 participants