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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user