-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a pipeline for audio ops (#9102)
- Loading branch information
Showing
11 changed files
with
797 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
40 changes: 40 additions & 0 deletions
40
...b/azure-pipelines/templates/c-api-artifacts-package-and-publish-steps-posix_audio_ops.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}' |
Oops, something went wrong.