From 41d460f7ac0df392d24b3f99dfb28a5e983adbba Mon Sep 17 00:00:00 2001 From: Mikhail Ryzhov Date: Wed, 5 Jun 2024 14:10:14 +0200 Subject: [PATCH] [GHA] Pinned MSVC toolset version (#24860) ### Details: - Pinned MSVC toolset version - removed hardcoded jobs count ### Tickets: - *ticket-id* --- .github/workflows/windows.yml | 2 ++ .github/workflows/windows_conditional_compilation.yml | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e87db422b25..460bff4db18 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -153,6 +153,8 @@ jobs: - name: Configure Developer Command Prompt for Microsoft Visual C++ uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 + with: + toolset: 14.40 - name: Set SSL_CERT_FILE for model downloading for unit tests run: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.yml index 163e051d131..896e39c3687 100644 --- a/.github/workflows/windows_conditional_compilation.yml +++ b/.github/workflows/windows_conditional_compilation.yml @@ -152,6 +152,8 @@ jobs: - name: Configure Developer Command Prompt for Microsoft Visual C++ uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 + with: + toolset: 14.40 - name: Set SSL_CERT_FILE for model downloading for unit tests run: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENV @@ -174,10 +176,11 @@ jobs: - name: Clean ccache stats run: '& ccache --zero-stats' + # If the build fails due to running out of RAM, please decrease the number of parallel jobs (--parallel n) - name: Cmake build - CC COLLECT run: | - cmake --build ${{ env.BUILD_DIR }} --parallel 32 --config ${{ env.CMAKE_BUILD_TYPE }} && ` - cmake --build ${{ env.BUILD_DIR }} --parallel 32 --config ${{ env.CMAKE_BUILD_TYPE }} --target sea_itt_lib + cmake --build ${{ env.BUILD_DIR }} --parallel --config ${{ env.CMAKE_BUILD_TYPE }} && ` + cmake --build ${{ env.BUILD_DIR }} --parallel --config ${{ env.CMAKE_BUILD_TYPE }} --target sea_itt_lib - name: Show ccache stats run: '& ccache --show-stats'