Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: Windows OpenVINO CI Pipeline
 
on:
  push:
    branches:
      - main
      - rel-*
  pull_request:
    branches:
      - main
      - rel-*
  workflow_dispatch:
 
concurrency:
  group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
  cancel-in-progress: true
 
jobs:
  BUILD_OPENVINO_EP:
    name: Windows OpenVINO CI Pipeline
    runs-on: [
      "self-hosted",
      "1ES.Pool=onnxruntime-github-vs2022-latest",
      "JobId=BUILD_OPENVINO_EP-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
      ]
    timeout-minutes: 240
    env:
      AZCOPY_AUTO_LOGIN_TYPE: MSI
      AZCOPY_MSI_CLIENT_ID: d712a4c7-a0cf-4e87-af75-31510eba0a8e
      OnnxRuntimeBuildDirectory: ${{ github.workspace }}
      DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
      ALLOW_RELEASED_ONNX_OPSET_ONLY: '1'
      BuildConfig: RelWithDebInfo
      buildArch: x64
 
    steps:
      - name: Checkout
        uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
        with:
          fetch-depth: 0
          submodules: none
 
      - name: Setup Python 3.12
        uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
        with:
          python-version: '3.12'
          architecture: x64 #Keep x64, because the original pipeline is for x64
 
      - name: Locate vcvarsall and Setup Env
        uses: ./.github/actions/locate-vcvarsall-and-setup-env
        with:
          architecture: x64
 
      - name: Download OpenVINO Toolkit v2026.2.1
        env:
          OpenVINOVersion: 2026.2.1
        shell: pwsh
        run: |
          $Url ="https://storage.openvinotoolkit.org/repositories/openvino/packages/2026.2.1/windows_vc_mt/openvino_toolkit_windows_vc_mt_2026.2.1.21919.ede283a88e3_x86_64.zip"
          $OutputPath = "$env:RUNNER_TEMP\openvino.zip"
          $ExtractPath = "$env:RUNNER_TEMP\openvino-v$env:OpenVINOVersion"
          $TempExtractPath = "$env:RUNNER_TEMP\openvino_temp"
 
          # Ensure directories exist
          if (Test-Path $ExtractPath) {
            Remove-Item -Recurse -Force $ExtractPath
          }
          New-Item -ItemType Directory -Path $ExtractPath | Out-Null
          New-Item -ItemType Directory -Path $TempExtractPath | Out-Null
 
          # Download OpenVINO ZIP
          Write-Output "Downloading OpenVINO"
          Invoke-WebRequest -Uri $Url -OutFile $OutputPath
 
          # Extract to temporary directory first
          Write-Output "Extracting OpenVINO to a temporary directory"
          Expand-Archive -Path $OutputPath -DestinationPath $TempExtractPath -Force
 
          # Locate the nested subdirectory
          $InnerFolder = Get-ChildItem -Path $TempExtractPath -Directory | Select-Object -First 1
 
          if ($InnerFolder) {
            Write-Output "Moving extracted files to final destination"
            Move-Item -Path "$($InnerFolder.FullName)\*" -Destination $ExtractPath -Force
          } else {
            Write-Error "Extraction failed: No expected subdirectory found in $TempExtractPath."
            Write-Error "The archive may not have extracted correctly, or its structure is different than expected."
            exit 1
          }
 
          # Clean up temporary files
          Remove-Item -Recurse -Force $TempExtractPath
          Remove-Item -Force $OutputPath
 
          # Confirm success
          Write-Output "OpenVINO extracted to $ExtractPath"
 
      - name: Set OpenVINORootDir
        shell: pwsh
        # Use $GITHUB_ENV to set the variable for subsequent steps
        run: |
          $openVinoRootDir = Join-Path $env:RUNNER_TEMP "openvino-v2026.2.1"
          echo "OpenVINORootDir=$openVinoRootDir" >> $env:GITHUB_ENV
 
      - name: Print OpenVINORootDir after downloading OpenVINO
        shell: cmd
        run: 'echo %OpenVINORootDir%'
 
      - name: Print contents of OpenVINO Toolkit
        shell: cmd
        run: 'dir %OpenVINORootDir%'
 
      - name: Set up OpenVINO environment
        shell: pwsh
        run: |
          Write-Output "Setting up OpenVINO environment variables"
          . "$env:OpenVINORootDir\setupvars.ps1"
 
          Write-Output "Exporting selected environment variables to pipeline"
 
          $vars = @(
            "INTEL_OPENVINO_DIR",
            "OpenVINO_DIR",
            "OpenVINOGenAI_DIR",
            "OPENVINO_LIB_PATHS",
            "TBB_DIR",
            "PATH",
            "PYTHONPATH"
          )
 
          foreach ($var in $vars) {
            if (Test-Path "Env:$var") {
              $value = [System.Environment]::GetEnvironmentVariable($var, "Process")
              Write-Output "Setting $var=$value"
              echo "$var=$value" >> $env:GITHUB_ENV  # Append to GITHUB_ENV
            } else {
              Write-Output "Warning: $var is not set."
            }
          }
 
          Write-Output "Selected environment variables exported successfully"
 
 
 
      - name: Generate onnxruntime.sln
        shell: pwsh
        working-directory: ${{ runner.temp }}
        run: |
          python.exe ${{ github.workspace }}\tools\ci_build\build.py --config ${{ env.BuildConfig }} --build_dir build --cmake_generator "Visual Studio 17 2022" --build_shared_lib --use_openvino CPU --use_binskim_compliant_compile_flags --update --parallel
 
      - name: Build
        shell: pwsh
        working-directory: ${{ runner.temp }}
        run: |
          python.exe ${{ github.workspace }}\tools\ci_build\build.py --config ${{ env.BuildConfig }} --build_dir build --cmake_generator "Visual Studio 17 2022" --build_shared_lib --use_openvino CPU --use_binskim_compliant_compile_flags --build --parallel
 
 
      - name: Run unit tests
        shell: pwsh
        working-directory: ${{ runner.temp }}
        run: |
          python "${{ github.workspace }}\tools\ci_build\build.py" `
            --config "${{ env.BuildConfig }}" `
            --build_dir build `
            --cmake_generator "Visual Studio 17 2022" `
            --build_shared_lib `
            --use_openvino CPU `
            --use_binskim_compliant_compile_flags `
            --test --enable_onnx_tests