OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GHA] Windows Visual Studio 2026 build (#35549)
Karolina Sankiewicz3c5c4d1b6d68
diff --git a/.github/actions/common/constants.py b/.github/actions/common/constants.pyindex b92534172f5..8ff2219d787 100644--- a/.github/actions/common/constants.py+++ b/.github/actions/common/constants.py@@ -24,6 +24,7 @@ productTypes = ('public_windows_vs2022_release','public_windows_vs2022_levelzero_release','public_windows_vs2022_debug',+ 'public_windows_vs2026_release','public_manylinux_2_28_x86_64_release','public_macos_x86_64_release','public_macos_arm64_release',diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.ymlindex e8b781f6d96..c569683d20f 100644--- a/.github/workflows/job_build_windows.yml+++ b/.github/workflows/job_build_windows.yml@@ -157,8 +157,15 @@ jobs:- name: Configure Developer Command Prompt for Microsoft Visual C++uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0+ if: ${{ contains(inputs.build-variant, 'vs2022') }}with:- toolset: 14.42 # v2022+ toolset: "14.42" # v2022++ - name: Configure Developer Command Prompt for Microsoft Visual C++ for VS 2026+ uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0+ if: ${{ inputs.build-variant == 'vs2026' }}+ with:+ toolset: "14.50" # v2026- name: Set SSL_CERT_FILE for model downloading for unit testsrun: echo SSL_CERT_FILE=$(python3 -m certifi) >> $env:GITHUB_ENVdiff --git a/.github/workflows/windows_vs2026_release.yml b/.github/workflows/windows_vs2026_release.ymlnew file mode 100644index 00000000000..b1741b6e10b--- /dev/null+++ b/.github/workflows/windows_vs2026_release.yml@@ -0,0 +1,97 @@+name: Windows (VS 2026, Python 3.11, Release)+on:+ workflow_dispatch:+ inputs:+ target-branch:+ description: 'Target branch for the build; taken from event context by default'+ type: string+ required: false+ push:+ branches:+ - master+ - 'releases/**'+ pull_request:+ types:+ - opened+ - synchronize+ - reopened+ - ready_for_review+concurrency:+ # github.ref is not unique in post-commit+ group: ${{ github.event_name == 'push' && github.run_id || github.ref }}-windows-vs2026+ cancel-in-progress: true++env:+ TARGET_BRANCH: ${{ inputs.target-branch || github.base_ref || github.event.merge_group.base_ref || github.ref }}+ PIP_CACHE_PATH: "C:\\mount\\caches\\pip\\win"+ PYTHON_VERSION: '3.11'++permissions: read-all++jobs:+ Smart_CI:+ runs-on: ubuntu-latest+ if: github.event.pull_request.draft == false || github.run_attempt > 1+ outputs:+ affected_components: "${{ steps.smart_ci.outputs.affected_components }}"+ skip_workflow: "${{ steps.smart_ci.outputs.skip_workflow }}"+ target_branch: ${{ steps.set_target_branch.outputs.target_branch }}+ steps:+ - name: checkout action+ uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries+ timeout-minutes: 15+ with:+ sparse-checkout: .github/actions/smart-ci++ - name: Get affected components+ id: smart_ci+ uses: ./.github/actions/smart-ci+ with:+ repository: ${{ github.repository }}+ pr: ${{ github.event.number }}+ commit_sha: ${{ github.sha }}+ ref_name: ${{ github.ref_name }}+ component_pattern: "category: (.*)"+ repo_token: ${{ secrets.GITHUB_TOKEN }}+ skip_when_only_listed_labels_set: 'docs'+ skip_when_only_listed_files_changed: '*.md,*.rst,*.png,*.jpg,*.svg,*/layer_tests_summary/*,*/conformance/*'++ - name: Get target branch+ id: set_target_branch+ run: |+ echo "target_branch=${TARGET_BRANCH#refs/heads/}" >> $GITHUB_OUTPUT++ Build:+ needs: [ Smart_CI ]+ if: "!needs.smart_ci.outputs.skip_workflow"+ uses: ./.github/workflows/job_build_windows.yml+ with:+ runner: 'aks-win-16-cores-32gb-vs2026-build'+ affected-components: ${{ needs.smart_ci.outputs.affected_components }}+ build-type: 'Release'+ target-branch: ${{ needs.smart_ci.outputs.target_branch }}+ build-additional-python-wheels: true+ build-variant: 'vs2026'+ cmake-options: >-+ -G 'Ninja Multi-Config'+ -DENABLE_PYTHON=ON+ -DENABLE_WHEEL=OFF+ -DENABLE_TESTS=ON+ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON+ -DENABLE_STRICT_DEPENDENCIES=OFF+ -DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON+ -DFETCHCONTENT_BASE_DIR="C:\fcc\ninja_multi_config"++ Overall_Status:+ name: ci/gha_overall_status_windows_vs2026+ needs: [ Smart_CI, Build]+ if: ${{ always() }}+ runs-on: ubuntu-latest+ steps:+ - name: Check status of all jobs+ if: >-+ ${{+ contains(needs.*.result, 'failure') ||+ contains(needs.*.result, 'cancelled')+ }}+ run: exit 1