Skip to content

Commit

Permalink
More fixes on random connection excepiton in Mac Build. (microsoft#20328
Browse files Browse the repository at this point in the history
  • Loading branch information
mszhanyi authored Apr 17, 2024
1 parent 5c8034c commit 4d2b981
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
10 changes: 10 additions & 0 deletions tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,23 @@ stages:
- template: use-xcode-version.yml
parameters:
xcodeVersion: 14.2

- script: |
/bin/bash $(Build.SourcesDirectory)/tools/ci_build/github/apple/build_host_protoc.sh \
$(Build.SourcesDirectory) \
$(Build.BinariesDirectory)/protobuf \
$(Build.BinariesDirectory)/protobuf_install
displayName: Build Host Protoc
- template: download-deps.yml

- task: PythonScript@0
displayName: 'Update deps.txt'
inputs:
scriptPath: $(Build.SourcesDirectory)/tools/ci_build/replace_urls_in_deps.py
arguments: --new_dir $(Build.BinariesDirectory)/deps
workingDirectory: $(Build.BinariesDirectory)

- script: |
set -e -x
python3 tools/ci_build/github/apple/build_apple_framework.py \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ parameters:
- MinSizeRel

stages:
- stage: Python_Packaging_Windows_CPU
dependsOn: []
jobs:
- ${{ if eq(parameters.enable_windows_cpu, true) }}:
- ${{ if eq(parameters.enable_windows_cpu, true) }}:
- stage: Python_Packaging_Windows_CPU
dependsOn: []
jobs:
- job: Windows_py_Wheels
pool: 'onnxruntime-Win-CPU-2022'
strategy:
Expand Down Expand Up @@ -393,6 +393,15 @@ stages:
parameters:
xcodeVersion: 14.2

- template: download-deps.yml

- task: PythonScript@0
displayName: 'Update deps.txt'
inputs:
scriptPath: $(Build.SourcesDirectory)/tools/ci_build/replace_urls_in_deps.py
arguments: --new_dir $(Build.BinariesDirectory)/deps
workingDirectory: $(Build.BinariesDirectory)

- script: |
set -e -x
export _PYTHON_HOST_PLATFORM=macosx-${{variables.MACOSX_DEPLOYMENT_TARGET}}-universal2
Expand Down

0 comments on commit 4d2b981

Please sign in to comment.