-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from JDAI-CV/ci_macos
onnx2bnn macos CI
- Loading branch information
Showing
6 changed files
with
72 additions
and
51 deletions.
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
steps: | ||
- script: python -m pip install --user --upgrade setuptools wheel twine | ||
displayName: Install setuptools, wheel and twine | ||
- script: python setup.py sdist bdist_wheel | ||
- script: python setup.py bdist_wheel | ||
workingDirectory: tools/onnx2bnn/python/ | ||
displayName: Build onnx2bnn python package |
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.7' | ||
addToPath: true | ||
architecture: 'x64' | ||
- template: template_onnx2bnn_build_python.yml | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.6' | ||
addToPath: true | ||
architecture: 'x64' | ||
- template: template_onnx2bnn_build_python.yml | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.5' | ||
addToPath: true | ||
architecture: 'x64' | ||
- template: template_onnx2bnn_build_python.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,12 @@ | ||
steps: | ||
- task: GitHubRelease@0 | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) | ||
inputs: | ||
gitHubConnection: 'dabnn release' | ||
repositoryName: '$(Build.Repository.Name)' | ||
action: 'edit' | ||
tag: '$(Build.SourceBranchName)' | ||
target: '$(Build.SourceVersion)' | ||
assets: '$(Build.ArtifactStagingDirectory)/*' | ||
assetUploadMode: 'replace' | ||
|
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,6 @@ | ||
steps: | ||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
pathtoPublish: $(Build.ArtifactStagingDirectory) | ||
artifactName: onnx2bnn | ||
|
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,9 @@ | ||
steps: | ||
- script: python -m twine upload dist/* --verbose | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) | ||
displayName: Upload wheel to PyPI | ||
workingDirectory: tools/onnx2bnn/python/ | ||
env: | ||
TWINE_USERNAME: $(twineUsername) | ||
TWINE_PASSWORD: $(twinePassword) | ||
|