-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make onnxscript release 1ES compliant (#2071)
Co-authored-by: Justin Chu <[email protected]> Co-authored-by: Copilot <[email protected]>
- Loading branch information
1 parent
96447fb
commit 18adbf7
Showing
5 changed files
with
77 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
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,20 @@ | ||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.11' | ||
displayName: 'Set Up Python' | ||
- script: python -m pip install --upgrade pip build wheel | ||
displayName: 'Install Python build dependencies' | ||
- script: python -m build | ||
displayName: 'Build ONNX Script wheel' | ||
- task: CopyFiles@2 | ||
displayName: 'Copy Python Wheel to: $(Build.ArtifactStagingDirectory)' | ||
inputs: | ||
SourceFolder: 'dist' | ||
Contents: '*.*' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
- task: 1ES.PublishPipelineArtifact@1 | ||
displayName: 'Publish Python Wheel' | ||
inputs: | ||
ArtifactName: 'onnxscript' | ||
targetPath: '$(Build.ArtifactStagingDirectory)' |
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,11 @@ | ||
stages: | ||
- stage: Stage | ||
jobs: | ||
- job: Job | ||
steps: | ||
- template: jobs/steps/release-steps.yml | ||
# Test the wheels. This needs to happen after PublishBuildArtifacts | ||
# to avoid interference with the artifacts | ||
- script: python -m pip install dist/*.whl --no-deps | ||
displayName: 'Install wheel' | ||
condition: eq(variables['ONNX_SCRIPT_RELEASE'], 1) |