Reduce Objective-C static analysis build time. (#13149)

This commit is contained in:
Edward Chen 2022-09-28 15:49:48 -07:00 committed by GitHub
parent c26bb1bb19
commit 55ae71c160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,11 +2,15 @@ jobs:
- job: ObjCStaticAnalysis
pool:
vmImage: 'macOS-11'
vmImage: 'macOS-12'
timeoutInMinutes: 90
timeoutInMinutes: 30
steps:
- checkout: self
clean: true
submodules: recursive
- task: UsePythonVersion@0
inputs:
versionSpec: "3.9"
@ -24,9 +28,9 @@ jobs:
--config Debug \
--build_shared_lib --use_coreml --build_objc \
--cmake_extra_defines CMAKE_EXPORT_COMPILE_COMMANDS=ON \
--update \
--build --parallel
displayName: Generate compile_commands.json
--update --skip_submodule_sync \
--build --parallel --target onnx_proto
displayName: Generate compile_commands.json and ONNX protobuf files
- script: |
"$(brew --prefix llvm)/bin/clang-tidy" \