Skip to content

Commit

Permalink
Add a pipeline for audio ops (#9102)
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn authored Sep 21, 2021
1 parent 83dc225 commit b73bc79
Show file tree
Hide file tree
Showing 11 changed files with 797 additions and 1 deletion.
31 changes: 31 additions & 0 deletions tools/ci_build/github/azure-pipelines/c-api-audio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
parameters:
- name: RunOnnxRuntimeTests
displayName: Run Tests?
type: boolean
default: true

- name: DoCompliance
displayName: Run Compliance Tasks?
type: boolean
default: true

- name: DoEsrp
displayName: Run code sign tasks? Must be true if you are doing an Onnx Runtime release.
type: boolean
default: false

- name: IsReleaseBuild
displayName: Is a release build? Set it to true if you are doing an Onnx Runtime release.
type: boolean
default: false

jobs:
- template: templates/c-api-cpu-audio-no-java.yml
parameters:
RunOnnxRuntimeTests: ${{ parameters.RunOnnxRuntimeTests }}
DoCompliance: ${{ parameters.DoCompliance }}
DoEsrp: ${{ parameters.DoEsrp }}
IsReleaseBuild: ${{ parameters.IsReleaseBuild }}
OrtNugetPackageId: 'Microsoft.ML.OnnxRuntime'
AdditionalBuildFlags: '--ms_experimental'
BuildVariant: 'default'
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# sets up common build tools for the windows build machines before build

parameters:
- name: buildConfig
type: string
default: 'Release'

- name: artifactName
type: string
default: 'onnxruntime-linux-x64'

- name: artifactNameNoVersionString
type: string
default: 'onnxruntime-linux-x64'

- name: libraryName
type: string
default: 'libonnxruntime.so'

steps:
- task: ShellScript@2
displayName: 'Copy build artifacts for zipping'
inputs:
scriptPath: 'tools/ci_build/github/linux/copy_strip_binary.sh'
args: '-r $(Build.BinariesDirectory) -a ${{parameters.artifactName}} -l ${{parameters.libraryName}} -c ${{parameters.buildConfig}} -s $(Build.SourcesDirectory) -t $(Build.SourceVersion)'
workingDirectory: '$(Build.BinariesDirectory)/${{parameters.buildConfig}}'

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)/${{parameters.artifactName}}'
includeRootFolder: true
archiveType: 'tar' # Options: zip, 7z, tar, wim
tarCompression: 'gz'
archiveFile: '$(Build.ArtifactStagingDirectory)/${{parameters.artifactName}}.tgz'
replaceExistingArchive: true

- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: '${{parameters.artifactNameNoVersionString}}'
Loading

0 comments on commit b73bc79

Please sign in to comment.