mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
### Description
Update absl and gtest to fix an ARM64EC build error
### Motivation and Context
We need to get an important fix into ORT.
The fix is:
8028a87c96
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
jobs:
|
|
- job: ObjCStaticAnalysis
|
|
|
|
pool:
|
|
vmImage: 'macOS-13'
|
|
|
|
timeoutInMinutes: 30
|
|
|
|
steps:
|
|
- checkout: self
|
|
clean: true
|
|
submodules: recursive
|
|
|
|
- task: UsePythonVersion@0
|
|
inputs:
|
|
versionSpec: "3.9"
|
|
addToPath: true
|
|
architecture: "x64"
|
|
|
|
- script: |
|
|
python tools/ci_build/build.py \
|
|
--build_dir "$(Build.BinariesDirectory)" \
|
|
--cmake_generator "Unix Makefiles" \
|
|
--config Debug \
|
|
--build_shared_lib --use_coreml --build_objc \
|
|
--enable_training_apis \
|
|
--cmake_extra_defines CMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
--update --skip_submodule_sync \
|
|
--build --parallel --target onnx_proto
|
|
displayName: Generate compile_commands.json and ONNX protobuf files
|
|
|
|
- script: |
|
|
set -e
|
|
|
|
CLANG_TIDY_CHECKS="-*,clang-analyzer-*"
|
|
|
|
"$(brew --prefix llvm@15)/bin/clang-tidy" \
|
|
-p="$(Build.BinariesDirectory)/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
|
|
displayName: Analyze Objective-C/C++ source code
|