-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Support Windows cross-compiling for ARM(64) in ORT build scripts #549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
ef0dde9
Initial commit
hariharans29 98f6b05
More changes
hariharans29 3565efc
More changes
hariharans29 39ede29
More changes
hariharans29 a0bfc28
More changes
hariharans29 bee88ab
Merge branch 'master' into arm64WindowsBuild
hariharans29 69a45d5
PR feedback
hariharans29 c04f076
Commiting Azure build config file
hariharans29 9cd01a3
Fix build pipeline
hariharans29 1f50d09
Cleanup build dir template addition
hariharans29 d37c4cb
Remove conda modules download step
hariharans29 16217e0
PR feedback
hariharans29 e839792
Revert x86 arguments to as they are currently
hariharans29 4747e28
More changes
hariharans29 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
47 changes: 47 additions & 0 deletions
47
tools/ci_build/github/azure-pipelines/win-arm-crosscompile-ci-pipeline.yml
This file contains hidden or 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,47 @@ | ||
| jobs: | ||
| - job: Windows_ARM_CrossCompile_CI_Dev | ||
| variables: | ||
| buildDirectory: '$(Build.BinariesDirectory)' | ||
| steps: | ||
| - template: templates/set-test-data-variables-step.yml | ||
| - task: UniversalPackages@0 | ||
| displayName: 'Download python' | ||
| inputs: | ||
| command: download | ||
| vstsFeed: '$(System.TeamProject)' | ||
| vstsFeedPackage: 'miniconda3_win64' | ||
| vstsPackageVersion: '4.5.11' | ||
| downloadDirectory: '$(Build.BinariesDirectory)\python' | ||
| - task: CmdLine@1 | ||
| displayName: 'Run python installer' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\python\installer.exe' | ||
| arguments: '/S /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$(Build.BinariesDirectory)\packages\python' | ||
| timeoutInMinutes: 10 | ||
| - task: BatchScript@1 | ||
| displayName: 'setup env' | ||
| inputs: | ||
| filename: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\setup_env.bat' | ||
| modifyEnvironment: true | ||
| workingFolder: '$(Build.BinariesDirectory)' | ||
| - task: CmdLine@1 | ||
| displayName: 'Download cmake' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\packages\python\python.exe' | ||
| arguments: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\download_cmake.py --build_dir $(Build.BinariesDirectory)' | ||
| - task: CmdLine@1 | ||
| displayName: 'Generate cmake config and build Debug' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\packages\python\python.exe' | ||
| arguments: '$(Build.SourcesDirectory)\tools\ci_build\build.py --config Debug --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_path $(Build.BinariesDirectory)\cmake\bin\cmake.exe --arm' | ||
| workingDirectory: "$(Build.BinariesDirectory)" | ||
| - task: CmdLine@1 | ||
| displayName: 'Generate cmake config and build Release' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\packages\python\python.exe' | ||
| arguments: '$(Build.SourcesDirectory)\tools\ci_build\build.py --config Release --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_path $(Build.BinariesDirectory)\cmake\bin\cmake.exe --arm' | ||
| workingDirectory: "$(Build.BinariesDirectory)" | ||
| - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
| displayName: 'Component Detection' | ||
| condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI')) | ||
| - template: templates/clean-agent-build-directory-step.yml |
47 changes: 47 additions & 0 deletions
47
tools/ci_build/github/azure-pipelines/win-arm64-crosscompile-ci-pipeline.yml
This file contains hidden or 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,47 @@ | ||
| jobs: | ||
| - job: Windows_ARM_CrossCompile_CI_Dev | ||
| variables: | ||
| buildDirectory: '$(Build.BinariesDirectory)' | ||
| steps: | ||
| - template: templates/set-test-data-variables-step.yml | ||
| - task: UniversalPackages@0 | ||
| displayName: 'Download python' | ||
| inputs: | ||
| command: download | ||
| vstsFeed: '$(System.TeamProject)' | ||
| vstsFeedPackage: 'miniconda3_win64' | ||
| vstsPackageVersion: '4.5.11' | ||
| downloadDirectory: '$(Build.BinariesDirectory)\python' | ||
| - task: CmdLine@1 | ||
| displayName: 'Run python installer' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\python\installer.exe' | ||
| arguments: '/S /NoRegistry=1 /AddToPath=0 /RegisterPython=0 /D=$(Build.BinariesDirectory)\packages\python' | ||
| timeoutInMinutes: 10 | ||
| - task: BatchScript@1 | ||
| displayName: 'setup env' | ||
| inputs: | ||
| filename: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\setup_env.bat' | ||
| modifyEnvironment: true | ||
| workingFolder: '$(Build.BinariesDirectory)' | ||
| - task: CmdLine@1 | ||
| displayName: 'Download cmake' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\packages\python\python.exe' | ||
| arguments: '$(Build.SourcesDirectory)\tools\ci_build\github\windows\download_cmake.py --build_dir $(Build.BinariesDirectory)' | ||
| - task: CmdLine@1 | ||
| displayName: 'Generate cmake config and build Debug' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\packages\python\python.exe' | ||
| arguments: '$(Build.SourcesDirectory)\tools\ci_build\build.py --config Debug --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_path $(Build.BinariesDirectory)\cmake\bin\cmake.exe --arm64' | ||
| workingDirectory: "$(Build.BinariesDirectory)" | ||
| - task: CmdLine@1 | ||
| displayName: 'Generate cmake config and build Release' | ||
| inputs: | ||
| filename: '$(Build.BinariesDirectory)\packages\python\python.exe' | ||
| arguments: '$(Build.SourcesDirectory)\tools\ci_build\build.py --config Release --build_dir $(Build.BinariesDirectory) --skip_submodule_sync --cmake_path $(Build.BinariesDirectory)\cmake\bin\cmake.exe --arm64' | ||
| workingDirectory: "$(Build.BinariesDirectory)" | ||
| - task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0 | ||
| displayName: 'Component Detection' | ||
| condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI')) | ||
| - template: templates/clean-agent-build-directory-step.yml |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.