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.
Hi, I'm currently trying to install Home-Assistant Core on a Raspberry Pi Zero WH (armv6) and stumbled upon an inconvenience that could be (hopefully) solved via the GH Action: since HA dropped support for the Zero with the HAOS the only way to install it is via pip. According to this community comment the installation on a Zero is possible but takes up to 15 hours (when rust and maturin are already installed as dependency before installing HA). I can confirm that the
Collecting orjson==3.8.1 Downloading... Installing build dependencies...
takes more than 4 hours (htop
showed arustc
process that uses 100% CPU, but I did cancel it manually and am currently trying to install it a second time).I'm not familiar with building pip packages and would need guidance on how to test locally on some emulated docker image¿ if needed (since building it on the Zero seems out of question with the >10h build time; I'm not sure yet if any other dependency takes some hours to build too and orjson "only" requires about 5h).
Looking on the
linux-cross
GHA thematrix.target
is used byuraimo/run-on-arch-action
which supportsarmv6
andmessense/maturin-action
but I'm not sure ifCargo ... --target armv6 ...
is going to work (I'm not familiar with rust as well and I don't know if this is related?).It would be very helpful if this simple
armv6
addition could be provided if everything works out-of-box via GHA without changing anything. If it's not working you can close this PR and I hope everything works after 15h and I don't have to update this debug setup anytime soon.Some additional infos: Similar to the HA community post I intend to use my spare Zeros for some HA debugging and testing as all my Pi3 and Pi4 are occupied; I don't intend it to run a full-blown smarthome on it.
Steps to reproduce the 15h build:
(maybe?) Build the repo on a Raspberry Zero.
(or using my way) Install HA:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip install maturin
pip install homeassistant==2022.12.8
Without installing rust (and maybe maturin) first the command
pip install homeassistant
(without providing a version) installed version 2022.6.4 in my case (as some newer python wheels failed, so I guess it falls back to the newest it is able to install?).