diff --git a/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml b/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml index 4b326cfbe3..988a73d4c4 100644 --- a/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml +++ b/tools/ci_build/github/azure-pipelines/mac-objc-static-analysis-ci-pipeline.yml @@ -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" \