I have used this https://forums.ankiweb.net/t/error-when-compiling-anki-in-fedora-arm64-docker-image-on-arm64-host-drone-ci to build for Ubuntu aarch64 using GitHub workflow. But build failed.
What is possible cause of Build Failed?
How to add aarch64 target?
INFO: Found 0 targets...
https://github.com/infinyte7/anki-arm64/pulls
Also there are some Error

dae
2
Python 3.8 is required - you appear to be using Python 3.6. You may run into further issues - it’s not a platform I’ve tested myself.
I have tried multiple approach and also minimized some errors.
0 Error
/usr/bin/env: 'python': No such file or directory
I solved using: ln -s /usr/bin/python3 /usr/bin/python
1 Error
Rerunning the workflow solve it. Also adding --jobs=1 solved.
2 Error
I rerun the workflow to solve this.
3 Error
4 Error
This error after rerunning the workflow.
I have viewed the log. All errors is related to PyQt5.QtCore
What is approach for solving this and also testing PyQt5 before running the build process because build process took a lot of time?
I managed to build it successfully on Arch Linux ARM64
What will be approach for sharing it to other so that they do not need to build it ?
For anybody they want to build on Arch Linux ARM64
pacman -Sy --noconfirm rsync curl git rust cargo nodejs
pacman -Sy --noconfirm python-pyqt5 python-pyqt3d python-pyqt5-networkauth python-pyqtchart python-pyqtdatavisualization python-pyqtpurchasing python-pyqtwebengine
pacman -Sy --noconfirm --needed base-devel
export BAZELISK_VER=1.9.0
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v${BAZELISK_VER}/bazelisk-linux-arm64 -o ./bazel
chmod +x bazel && mv bazel /usr/local/bin/
git clone --depth=1 https://github.com/ankitects/anki
cd anki
echo "build --action_env=PYTHON_SITE_PACKAGES=/usr/lib/python3.9/site-packages" >> user.bazelrc
rm -rf bazel-dist
bazel build -k --config opt dist
dae
6
Glad to hear you got it working. Thanks for sharing your steps, I imagine some people may find that useful.
I’m not ready to start distributing official arm builds yet, but you could always host a binary somewhere if you wanted to share it with others.
krmanik
7
Is any changes happen to Anki build? I have not checked recently?
Update anki · krmanik/anki-arm64@468ffc2 · GitHub
krmanik
8
dae
9
Starting with the 2.1.50 betas, arm64 wheels of Anki are available on PyPI, so you will no longer need to build them separately going forward.
krmanik
10
This will very good. I will archive my project. Many Thanks.
The betas link
Index of /downloads/beta/