-
Notifications
You must be signed in to change notification settings - Fork 578
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
Is there a plan to support armhf (aka armv7l) and arm64? #108
Comments
There are no immediate plans to support ARM. The versions of Python that are in https://github.com/actions/python-versions are compiled and built from source on our hosted runners (for Windows we don't need to compile anything). Since we don't have any runners that are ARM based, we don't offer ARM compatible versions of Python. In the future Macs are transitioning to ARM so we will probably add support for that if we have ARM based runners, but that seems like it will be a long way off. |
Thanks! I can fully understand and accept your reasons. But why closing the task? |
What is the latest status on this? Apple has released its new ARM-based devices in the meantime and I would also like to use my Raspberry Pi as a self-hosted runner. |
Would it be possible to use multiarch/qemu-user-static as dakale suggests in https://github.community/t/testing-against-multiple-architectures/17111/7? |
Given that M1 macs are increasingly commonly used, will you consider reopening this issue and supporting ARM? |
+1 |
+1 |
Both MacOS and Windows do have arm64 versions now and I suspect that an increasing and significant number of software engineers will use these. Some would even have their own self-hosted runners on these platform but they cannot make any use of this essential As amr64 can be cross-built, there is not need for you to have an arm64 machine in order to produce an artifact. As the original ticket was too broad, listing too many architectures and platforms, I think we should create a separated one for I know that this can take time but there is no need to have a goal of adding an arm64 version for each python version. Arguably I would find more than ok to even have just one for current python like 3.10 or even |
Hi, Any update on this issue? I see an increasing number of developers porting over their python project's binaries to add ARM64 support. Most of these are manual builds on their machines (or servers) running Apple's ARM64 architecture/hardware, or even It is also quite inconvenient for the CI due to the constrictive nature of Python interpreter's binaries(?) bundled into Case and point: Without elevation
With elevation
I could be wrong here, but I do believe that some PKGs do not require elevation in order to install. But, for Python, it's likely due to Python installing it into My point: it would be a great addition to have |
Hi @kernel-dev, I think this PR covered things you asked for. Cheers |
Hi, @panticmilos Firstly, thank you for your quick response; I appreciate it. Second, I apologise for probably a dumb and silly question – but does this mean I can actively specify the It's slightly unclear to me; but yes, that PR you had linked does seem to provide support for For further reference, here is a test workflow1 I had made to see which architectures the Python binaries support: Workflowname: Test python multi-arch support
on: [push]
jobs:
Test-Python:
name: Test Python on OSX
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Set up Python 3
uses: actions/setup-python@v2
with:
python-version: "3.10.x"
- name: The actual test
run: |
TESTENV=$(which python3)
file $TESTENV The test yielded the following result: Footnotes |
Hi @kernel-dev, You don't need to add anything to the command, it should work out of the box. The reason it's still not working for you is that we still need to rebuild our python builds in |
Ah, ok - thank you! I presume this will be available in prereleases/official releases soon? |
As matter of fact, it was today, but for now, there is one small workaround needed. Until we redeploy the macOS image update.
|
Yep! That worked like a charm. Thank you! Edit: It would appear that I cannot compile ARM64 (nor My workflow for macOS1 (for the production app) seems to fail here, during the action2: The closest idea I could have to solving this is to invoke Edit 2: None of the aforementioned that I tried worked. This might be a PyInstaller issue, or that the Python interpreter downloaded seems to target Footnotes |
I've gone ahead and reopen this issue and tagged it as an |
I'm sure you've seen this, but self-hosted ARM runners are now available, so hopefully this can start the chain of actions needed to get this updated? |
Hi @toomanybrians, at the moment we're working on the transition to using official |
Hi, |
Hi @vot4anto, you can try to use the latest python 3.11 using |
Should be a universal binary as per actions/setup-python#108 (comment)
I would like to see the arm64 support for non macOS installs (we are self-hosting github runners on AWS arm64 instances, deploying our applications onto arm64 lambda) Thanks! |
We had the same issue and we tricked the python installer action for our hosted macos (arm) runner using:
You will notice that 3.11.0 contains a universal binary. You need to take care of a few things beforehand, as mentioned here: https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-setup-python-with-a-self-hosted-runner
|
I know these things take time but could we please have a status update? We're considering buying a couple of 2023 Mac Mini M2:s to improve our action run times, which are currently dominated by XCode compile times on the hosted runners. |
3.10 at least does not appear to be a universal2 binary at this time:
|
When building with local runner on Mac OS there is no python release for arm64 architecture to take advantage of setup-python. See: actions/setup-python#108
Hello everyone. We uploaded universal packages for macOS with set up for arm64 architecture. For now such versions are available: 3.12.0-beta.2, 3.12.0-beta.1, 3.12.0-alpha.7, 3.11.4, 3.11.3, 3.10.11 |
I'm also experience this issue. I had a self-hosted runner in aws on arm (graviton engine) and I cannot install the mkdocs properly :) It's looks like there is some problem with running the setup-python action on graviton (aarch64) action:
output:
|
Describe the bug
I cannot use
actions/setup-python@v2
on my self-hosted ARM.Which version of the action are you using?
v1
v2
v2.0.1
ormaster
)Environment
If applicable, please specify if you're using a container
Python Versions
Please list all of the effected versions of Python (
3.8.2
, etc.)2.7.x
To Reproduce
Steps to reproduce the behavior:
Error:
Run/Repo Url
If applicable, and if your repo/run is public, please include a URL so it is easier for us to investigate.
It's private 😕
Screenshots
If applicable, add screenshots to help explain your problem.
See the log output above 👆
Additional context
Thank you!
The text was updated successfully, but these errors were encountered: