Исходный код СУБД 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: "MacOS CI Pipeline"
 
on:
  push:
    branches:
      - main
      - rel-*
      - plugin-ep-webgpu/rel-*
  pull_request:
    branches:
      - main
      - rel-*
      - plugin-ep-webgpu/rel-*
  workflow_dispatch:
 
concurrency:
  group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
  cancel-in-progress: true
 
env:
  python_version: "3.14"
 
jobs:
  cpu:
    uses: ./.github/workflows/macos-ci-build-and-test-workflow.yml
    with:
      # Only build arm64 for CPU
      # Also run a Release build on Xcode 16 for legacy-toolchain coverage.
      matrix_include: >-
        [
          {"machine": "arm64", "target": "arm64", "build_config": "Debug"},
          {"machine": "arm64", "target": "arm64", "build_config": "Release"},
          {"machine": "arm64", "target": "arm64", "build_config": "Release", "xcode_version": "16"}
        ]
      python_version: "3.14"
 
  coreml:
    uses: ./.github/workflows/macos-ci-build-and-test-workflow.yml
    with:
      use_coreml: true
      matrix_include: >-
        [
          {"machine": "arm64", "target": "x86_64", "build_config": "Release"},
          {"machine": "arm64", "target": "arm64", "build_config": "Debug"},
          {"machine": "arm64", "target": "arm64", "build_config": "Release"}
        ]
      python_version: "3.14"
 
  xnnpack:
    uses: ./.github/workflows/macos-ci-build-and-test-workflow.yml
    with:
      use_xnnpack: true
      # only build arm64/Debug for XNNPack
      matrix_include: >-
        [
          {"machine": "arm64", "target": "arm64", "build_config": "Debug"}
        ]
      python_version: "3.14"
 
  webgpu:
    uses: ./.github/workflows/macos-ci-build-and-test-workflow.yml
    with:
      use_webgpu: true
      matrix_include: >-
        [
          {"machine": "arm64", "target": "x86_64", "build_config": "Release"},
          {"machine": "arm64", "target": "arm64", "build_config": "Debug"},
          {"machine": "arm64", "target": "arm64", "build_config": "Release"}
        ]
      python_version: "3.14"
 
  iphone_simulator:
    runs-on: macos-15
 
    env:
      xcode_version: 26.3
      simulator_runtime_version: 26.2
 
    strategy:
      matrix:
        target_arch: [x86_64, arm64]
 
    timeout-minutes: 120
 
    steps:
      - name: Checkout code
        uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
      - name: Get vcpkg tool info
        id: vcpkg-tool-info
        uses: ./.github/actions/get-vcpkg-tool-info
      - uses: microsoft/onnxruntime-github-actions/setup-build-tools@d19341fb036c43a947a2c0e4a53ad4d15e10bc5c # v0.0.9
        with:
          vcpkg-version: ${{ steps.vcpkg-tool-info.outputs.release_tag }}
          vcpkg-hash: ${{ steps.vcpkg-tool-info.outputs.sha512 }}
          cmake-version: '3.31.8'
          cmake-hash: 99cc9c63ae49f21253efb5921de2ba84ce136018abf08632c92c060ba91d552e0f6acc214e9ba8123dee0cf6d1cf089ca389e321879fd9d719a60d975bcffcc8
          add-cmake-to-path: 'true'
          disable-terrapin: 'true'
 
      - name: macOS CI pipeline prepare steps
        uses: ./.github/actions/macos-ci-setup
        with:
          platform_machine: "arm64"
          python_version: ${{ env.python_version }}
          xcode_version: ${{ env.xcode_version }}
          use_cache: false
 
      - name: Build for iphonesimulator ${{ matrix.target_arch }}
        shell: bash
        run: |
          python ./tools/ci_build/build.py \
            --build_dir ./build \
            --update \
            --build --parallel \
            --test \
            --build_apple_framework \
            --use_xcode \
            --use_coreml \
            --use_xnnpack \
            --use_binskim_compliant_compile_flags \
            --ios \
            --apple_deploy_target=15.1 \
            --apple_sysroot=iphonesimulator \
            --osx_arch=${{ matrix.target_arch }}
        env:
          ORT_GET_SIMULATOR_DEVICE_INFO_REQUESTED_RUNTIME_VERSION: ${{ env.simulator_runtime_version }}
 
  Objective-C-StaticAnalysis:
    runs-on: macos-14
 
    env:
      xcode_version: 15.2
 
    timeout-minutes: 30
 
    steps:
      - name: Checkout code
        uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
      - name: Get vcpkg tool info
        id: vcpkg-tool-info
        uses: ./.github/actions/get-vcpkg-tool-info
      - uses: microsoft/onnxruntime-github-actions/setup-build-tools@d19341fb036c43a947a2c0e4a53ad4d15e10bc5c # v0.0.9
        with:
          vcpkg-version: ${{ steps.vcpkg-tool-info.outputs.release_tag }}
          vcpkg-hash: ${{ steps.vcpkg-tool-info.outputs.sha512 }}
          cmake-version: '3.31.8'
          cmake-hash: 99cc9c63ae49f21253efb5921de2ba84ce136018abf08632c92c060ba91d552e0f6acc214e9ba8123dee0cf6d1cf089ca389e321879fd9d719a60d975bcffcc8
          add-cmake-to-path: 'true'
          disable-terrapin: 'true'
 
      - name: macOS CI pipeline prepare steps
        uses: ./.github/actions/macos-ci-setup
        with:
          platform_machine: "arm64"
          python_version: ${{ env.python_version }}
          xcode_version: ${{ env.xcode_version }}
          use_cache: false
 
      - name: Generate compile_commands.json and ONNX protobuf files
        shell: bash
        run: |
          python ./tools/ci_build/build.py \
            --build_dir ./build \
            --cmake_generator "Unix Makefiles" \
            --config Debug \
            --build_shared_lib \
            --use_coreml \
            --build_objc \
            --enable_training_apis \
            --cmake_extra_defines CMAKE_EXPORT_COMPILE_COMMANDS=ON \
            --use_binskim_compliant_compile_flags \
            --update \
            --build --parallel \
            --target onnx_proto
 
      - name: Analyze Objective-C/C++ source code
        shell: bash
        run: |
          CLANG_TIDY_CHECKS="-*,clang-analyzer-*"
 
          "$(brew --prefix llvm@15)/bin/clang-tidy" \
            -p=./build/Debug \
            --checks="${CLANG_TIDY_CHECKS}" \
            --warnings-as-errors="${CLANG_TIDY_CHECKS}" \
            --header-filter="objectivec/include|objectivec|onnxruntime/core" \
            ./objectivec/*.mm \
            ./onnxruntime/core/platform/apple/logging/apple_log_sink.mm \
            ./onnxruntime/core/providers/coreml/model/*.mm