Skip to content

Commit

Permalink
Adding a new stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Feb 7, 2025
1 parent 0714630 commit 67c2221
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ stages:
- job: Set_Variables
pool:
name: 'onnxruntime-Ubuntu2204-AMD-CPU'
os: 'linux'
steps:
- checkout: none
- bash: |
Expand Down
64 changes: 33 additions & 31 deletions tools/ci_build/github/azure-pipelines/templates/c-api-cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ stages:
workspace:
clean: all
pool:
vmImage: 'macOS-13'
name: 'Azure Pipelines'
image: 'macOS-13'
os: 'macOS'
timeoutInMinutes: 300
steps:
- template: set-version-number-variables-step.yml
Expand Down Expand Up @@ -289,8 +291,8 @@ stages:
artifact: 'onnxruntime-java'

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
parameters:
condition: 'succeeded'

- stage: NuGet_Packaging_CPU
dependsOn:
Expand All @@ -312,8 +314,8 @@ stages:
OrtPackageId: ${{ parameters.OrtNugetPackageId }}
breakCodesignValidationInjection: ${{ parameters.DoEsrp }}
ReleaseVersionSuffix: $[stageDependencies.Setup.Set_Variables.outputs['Set_Release_Version_Suffix.ReleaseVersionSuffix']]
BuildDate : $[stageDependencies.Setup.Set_Variables.outputs['Set_Build_Date.BuildDate']]
BuildTime : $[stageDependencies.Setup.Set_Variables.outputs['Set_Build_Time.BuildTime']]
BuildDate: $[stageDependencies.Setup.Set_Variables.outputs['Set_Build_Date.BuildDate']]
BuildTime: $[stageDependencies.Setup.Set_Variables.outputs['Set_Build_Time.BuildTime']]

steps:
- checkout: self
Expand Down Expand Up @@ -384,7 +386,7 @@ stages:
BuildId: ${{ parameters.BuildId }}

- script: |
dir
dir
workingDirectory: '$(Build.BinariesDirectory)/nuget-artifact'
displayName: 'List artifacts'
Expand All @@ -398,7 +400,7 @@ stages:
filePath: $(Build.SourcesDirectory)\tools\ci_build\github\windows\extract_nuget_files.ps1

- script: |
mklink /D /J models C:\local\models
mklink /D /J models C:\local\models
workingDirectory: '$(Build.BinariesDirectory)'
displayName: 'Create models link'
- task: NuGetToolInstaller@0
Expand Down Expand Up @@ -506,8 +508,8 @@ stages:
workingDirectory: '$(Build.SourcesDirectory)\csharp'

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
parameters:
condition: 'succeeded'


- stage: Nodejs_Packaging
Expand Down Expand Up @@ -538,11 +540,11 @@ stages:
submodules: true

- script: |
echo.>>.gitattributes
echo /js/** text=auto eol=lf>>.gitattributes
rd /s /q js
git checkout -- js/**
git checkout -- .gitattributes
echo.>>.gitattributes
echo /js/** text=auto eol=lf>>.gitattributes
rd /s /q js
git checkout -- js/**
git checkout -- .gitattributes
workingDirectory: '$(Build.SourcesDirectory)'
displayName: 'Testing: force EOL to lf on windows for /js/**'
Expand Down Expand Up @@ -651,20 +653,20 @@ stages:
filePath: $(Build.SourcesDirectory)\tools\ci_build\github\windows\extract_nuget_files.ps1

- script: |
dir
dir
workingDirectory: '$(Build.BinariesDirectory)/nuget-artifact'
displayName: 'List artifacts'
- script: |
npm ci
npm ci
workingDirectory: '$(Build.SourcesDirectory)/js'
displayName: 'Install NPM packages /js'
- script: |
npm ci
npm ci
workingDirectory: '$(Build.SourcesDirectory)/js/common'
displayName: 'Install NPM packages /js/common'
- script: |
npm ci
npm ci
workingDirectory: '$(Build.SourcesDirectory)/js/node'
displayName: 'Install NPM packages /js/node'
Expand Down Expand Up @@ -775,45 +777,45 @@ stages:
artifact: 'NPM_packages'

- template: component-governance-component-detection-steps.yml
parameters :
condition : 'succeeded'
parameters:
condition: 'succeeded'


- template: ../nuget/templates/test_win.yml
parameters:
AgentPool : 'onnxruntime-Win-CPU-2022'
Skipx86Tests : false
NugetPackageName : 'Microsoft.ML.OnnxRuntime'
AgentPool: 'onnxruntime-Win-CPU-2022'
Skipx86Tests: false
NugetPackageName: 'Microsoft.ML.OnnxRuntime'
ArtifactSuffix: 'CPU'
SpecificArtifact: ${{ parameters.SpecificArtifact }}
BuildId: ${{ parameters.BuildId }}

- template: ../nuget/templates/test_linux.yml
parameters:
AgentPool : onnxruntime-Ubuntu2204-AMD-CPU
NugetPackageName : 'Microsoft.ML.OnnxRuntime'
AgentPool: onnxruntime-Ubuntu2204-AMD-CPU
NugetPackageName: 'Microsoft.ML.OnnxRuntime'
ArtifactSuffix: 'CPU'
SpecificArtifact: ${{ parameters.SpecificArtifact }}
BuildId: ${{ parameters.BuildId }}

- template: ../nuget/templates/test_macos.yml
parameters:
AgentPool : macOS-13
AgentPool: macOS-13
ArtifactSuffix: 'CPU'

- template: ../nodejs/templates/test_win.yml
parameters:
AgentPool : 'onnxruntime-Win-CPU-2022'
StageSuffix : 'Win_CPU_x64'
AgentPool: 'onnxruntime-Win-CPU-2022'
StageSuffix: 'Win_CPU_x64'

- template: ../nodejs/templates/test_linux.yml
parameters:
AgentPool : 'Azure-Pipelines-EO-Ubuntu-2004-aiinfra'
StageSuffix : 'Linux_CPU_x64'
AgentPool: 'Azure-Pipelines-EO-Ubuntu-2004-aiinfra'
StageSuffix: 'Linux_CPU_x64'

- template: ../nodejs/templates/test_macos.yml
parameters:
StageSuffix : 'macOS_CPU_x64'
StageSuffix: 'macOS_CPU_x64'

- template: final-jar-testing.yml
parameters:
Expand Down

0 comments on commit 67c2221

Please sign in to comment.