-
Notifications
You must be signed in to change notification settings - Fork 108
build: Add linux-arm64 build #1677
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
10 commits
Select commit
Hold shift + click to select a range
5e28100
initial changes for linux-arm64 build
hallvictoria 9650a96
fix variable def
hallvictoria edd7751
fix variable
hallvictoria 96ced26
testing fixes
hallvictoria 1854a9c
parse minor version
hallvictoria 6adf31c
refactor pack into eng
hallvictoria 4b319dc
does not work: initial code for win-arm64 build
hallvictoria 33d3296
refactor workerPath into top-level variables
hallvictoria 5af8e41
fix env_gen CopyFiles condition
hallvictoria 20b0d8e
remove win-arm64 build
hallvictoria 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>Microsoft.Azure.Functions.PythonWorker</id> | ||
<version>1.1.0</version> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Microsoft Azure Functions Python Worker</description> | ||
<copyright>© .NET Foundation. All rights reserved.</copyright> | ||
</metadata> | ||
<files> | ||
<file src="..\..\3.7_WINDOWS_X64\**" target="tools\3.7\WINDOWS\X64" /> | ||
<file src="..\..\3.7_WINDOWS_X86\**" target="tools\3.7\WINDOWS\X86" /> | ||
<file src="..\..\3.7_LINUX_X64\**" target="tools\3.7\LINUX\X64" /> | ||
<file src="..\..\3.7_OSX_X64\**" target="tools\3.7\OSX\X64" /> | ||
<file src="..\..\3.8_WINDOWS_X64\**" target="tools\3.8\WINDOWS\X64" /> | ||
<file src="..\..\3.8_WINDOWS_X86\**" target="tools\3.8\WINDOWS\X86" /> | ||
<file src="..\..\3.8_LINUX_X64\**" target="tools\3.8\LINUX\X64" /> | ||
<file src="..\..\3.8_OSX_X64\**" target="tools\3.8\OSX\X64" /> | ||
<file src="..\..\3.9_WINDOWS_X64\**" target="tools\3.9\WINDOWS\X64" /> | ||
<file src="..\..\3.9_WINDOWS_X86\**" target="tools\3.9\WINDOWS\X86" /> | ||
<file src="..\..\3.9_LINUX_X64\**" target="tools\3.9\LINUX\X64" /> | ||
<file src="..\..\3.9_OSX_X64\**" target="tools\3.9\OSX\X64" /> | ||
<file src="..\..\3.9_OSX_ARM64\**" target="tools\3.9\OSX\Arm64" /> | ||
hallvictoria marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<file src="..\..\3.9_LINUX_ARM64\**" target="tools\3.9\LINUX\Arm64" /> | ||
<file src="..\..\3.10_WINDOWS_X64\**" target="tools\3.10\WINDOWS\X64" /> | ||
<file src="..\..\3.10_WINDOWS_X86\**" target="tools\3.10\WINDOWS\X86" /> | ||
<file src="..\..\3.10_LINUX_X64\**" target="tools\3.10\LINUX\X64" /> | ||
<file src="..\..\3.10_OSX_X64\**" target="tools\3.10\OSX\X64" /> | ||
<file src="..\..\3.10_OSX_ARM64\**" target="tools\3.10\OSX\Arm64" /> | ||
<file src="..\..\3.10_LINUX_ARM64\**" target="tools\3.10\LINUX\Arm64" /> | ||
<file src="..\..\3.11_WINDOWS_X64\**" target="tools\3.11\WINDOWS\X64" /> | ||
<file src="..\..\3.11_WINDOWS_X86\**" target="tools\3.11\WINDOWS\X86" /> | ||
<file src="..\..\3.11_LINUX_X64\**" target="tools\3.11\LINUX\X64" /> | ||
<file src="..\..\3.11_OSX_X64\**" target="tools\3.11\OSX\X64" /> | ||
<file src="..\..\3.11_OSX_ARM64\**" target="tools\3.11\OSX\Arm64" /> | ||
<file src="..\..\3.11_LINUX_ARM64\**" target="tools\3.11\LINUX\Arm64" /> | ||
<file src="..\..\3.12_WINDOWS_X64\**" target="tools\3.12\WINDOWS\X64" /> | ||
<file src="..\..\3.12_WINDOWS_X86\**" target="tools\3.12\WINDOWS\X86" /> | ||
<file src="..\..\3.12_LINUX_X64\**" target="tools\3.12\LINUX\X64" /> | ||
<file src="..\..\3.12_OSX_X64\**" target="tools\3.12\OSX\X64" /> | ||
<file src="..\..\3.12_OSX_ARM64\**" target="tools\3.12\OSX\Arm64" /> | ||
<file src="..\..\3.12_LINUX_ARM64\**" target="tools\3.12\LINUX\Arm64" /> | ||
<file src="..\..\3.13_WINDOWS_X64\**" target="tools\3.13\WINDOWS\X64" /> | ||
<file src="..\..\3.13_WINDOWS_X86\**" target="tools\3.13\WINDOWS\X86" /> | ||
<file src="..\..\3.13_LINUX_X64\**" target="tools\3.13\LINUX\X64" /> | ||
<file src="..\..\3.13_OSX_X64\**" target="tools\3.13\OSX\X64" /> | ||
<file src="..\..\3.13_OSX_ARM64\**" target="tools\3.13\OSX\Arm64" /> | ||
<file src="..\..\3.13_LINUX_ARM64\**" target="tools\3.13\LINUX\Arm64" /> | ||
<file src="..\..\python\prodV4\worker.config.json" target="tools" /> | ||
<file src="Microsoft.Azure.Functions.PythonWorker.targets" target="build" /> | ||
<file src="..\..\_manifest\spdx_2.2\manifest.spdx.json" target="SBOM\manifest.spdx.json" /> | ||
</files> | ||
</package> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,24 +1,43 @@ | ||
parameters: | ||
pythonVersion: '' | ||
artifactName: '' | ||
workerPath: '' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: ${{ parameters.pythonVersion }} | ||
addToPath: true | ||
- bash: | | ||
major=$(echo $(pythonVersion) | cut -d. -f1) | ||
minor=$(echo $(pythonVersion) | cut -d. -f2) | ||
echo "##vso[task.setvariable variable=pythonMajor]$major" | ||
echo "##vso[task.setvariable variable=pythonMinor]$minor" | ||
echo $pythonMinor | ||
displayName: 'Parse pythonVersion' | ||
- powershell: | | ||
# Parse the Python minor version | ||
$PY_VER = "$(pythonVersion)" | ||
Write-Host "Python version: $PY_VER" | ||
# Extract minor version as integers | ||
$versionParts = $PY_VER.Split('.') | ||
$PY_MINOR = [int]$versionParts[1] | ||
Write-Host "Minor version: $PY_MINOR" | ||
|
||
# Set build-related variables based on Python minor version | ||
if( $PY_MINOR -ge 13 ) | ||
{ | ||
Write-Host "##vso[task.setvariable variable=workerPath;]$(proxyV4Path)" | ||
Write-Host "##vso[task.setvariable variable=proxyWorker;]true" | ||
} | ||
else | ||
{ | ||
Write-Host "##vso[task.setvariable variable=workerPath;]$(prodV4Path)" | ||
Write-Host "##vso[task.setvariable variable=proxyWorker;]false" | ||
} | ||
displayName: 'Set necessary variables' | ||
env: | ||
pythonVersion: ${{ parameters.pythonVersion }} | ||
- powershell: | | ||
Write-Host "workerPath: $(workerPath)" | ||
Write-Host "proxyWorker: $(proxyWorker)" | ||
displayName: 'Display variables' | ||
hallvictoria marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- task: ShellScript@2 | ||
inputs: | ||
disableAutoCwd: true | ||
scriptPath: 'pack/scripts/mac_arm64_deps.sh' | ||
scriptPath: 'eng/pack/scripts/mac_arm64_deps.sh' | ||
args: '${{ parameters.pythonVersion }}' | ||
displayName: 'Install Dependencies' | ||
- bash: | | ||
|
@@ -28,8 +47,7 @@ steps: | |
condition: ne(variables['pythonVersion'], '3.7') | ||
- task: CopyFiles@2 | ||
inputs: | ||
contents: | | ||
${{ parameters.workerPath }} | ||
contents: '$(workerPath)' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
targetFolder: '$(Build.ArtifactStagingDirectory)' | ||
flattenFolders: true | ||
- task: CopyFiles@2 | ||
|
@@ -41,7 +59,7 @@ steps: | |
!grpcio_tools*/* | ||
!build/** | ||
!docs/** | ||
!pack/** | ||
!eng/** | ||
hallvictoria marked this conversation as resolved.
Show resolved
Hide resolved
|
||
!python/** | ||
!tests/** | ||
!setuptools*/** | ||
|
@@ -52,7 +70,7 @@ steps: | |
!werkzeug/debug/shared/debugger.js | ||
!proxy_worker/** | ||
targetFolder: '$(Build.ArtifactStagingDirectory)' | ||
condition: in(variables['pythonMinor'], '7', '8', '9', '10', '11', '12') | ||
condition: eq(variables['proxyWorker'], false) | ||
displayName: 'Copy azure_functions_worker files' | ||
- task: CopyFiles@2 | ||
inputs: | ||
|
@@ -63,7 +81,7 @@ steps: | |
!grpcio_tools*/* | ||
!build/** | ||
!docs/** | ||
!pack/** | ||
!eng/** | ||
!python/** | ||
!tests/** | ||
!setuptools*/** | ||
|
@@ -75,5 +93,5 @@ steps: | |
!azure_functions_worker/** | ||
!dateutil/** | ||
targetFolder: '$(Build.ArtifactStagingDirectory)' | ||
condition: in(variables['pythonMinor'], '13') | ||
condition: eq(variables['proxyWorker'], true) | ||
displayName: 'Copy proxy_worker files' |
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
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
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.