ci(windows): upgrade ilammy/msvc-dev-cmd, remove /MP and add sccache stats (#454)

- Upgrade ilammy/msvc-dev-cmd from v1 to v1.13.0 to resolve Node.js 20
  deprecation warning (affects 05-windows-build and build_wheel_on_windows)
- Remove /MP from antlr4 and protobuf patches to eliminate 332
  non-cacheable sccache calls caused by "multiple input files"
- Add sccache statistics steps after pip install and after C++ Tests to
  capture build and test compilation cache metrics separately
This commit is contained in:
egolearner
2026-06-03 14:16:35 +08:00
committed by GitHub
parent 3e84958a1d
commit 355523a628
5 changed files with 41 additions and 7 deletions
+11 -1
View File
@@ -52,7 +52,7 @@ jobs:
cache-dependency-path: 'pyproject.toml'
- name: Set up MSVC environment
uses: ilammy/msvc-dev-cmd@v1
uses: ilammy/msvc-dev-cmd@v1.13.0
with:
arch: x64
@@ -87,12 +87,22 @@ jobs:
--config-settings='cmake.define.CMAKE_CXX_COMPILER_LAUNCHER=sccache'
shell: powershell
- name: Show sccache statistics after pip install
if: always()
run: sccache --show-stats
shell: powershell
- name: Run C++ Tests
run: |
cd "$env:GITHUB_WORKSPACE\build"
cmake --build . --target unittest --config Release --parallel $env:NPROC
shell: powershell
- name: Show sccache statistics after tests
if: always()
run: sccache --show-stats
shell: powershell
- name: Run Python Tests
run: |
cd "$env:GITHUB_WORKSPACE"
+1 -1
View File
@@ -86,7 +86,7 @@ jobs:
python-version: '3.11'
- name: Set up MSVC environment
uses: ilammy/msvc-dev-cmd@v1
uses: ilammy/msvc-dev-cmd@v1.13.0
with:
arch: x64