Skip to content
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

Build armv7 deltachat-rpc-server binaries without NDK #4155

Merged
merged 1 commit into from
Mar 13, 2023

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Mar 13, 2023

This fails on 0.10.1, but works after upgrading zig to the dev build.

@link2xt
Copy link
Collaborator Author

link2xt commented Mar 13, 2023

@link2xt link2xt force-pushed the link2xt/zig-build-arm-32 branch 4 times, most recently from 7bc8f69 to b70b181 Compare March 13, 2023 22:33
- name: Upload armv7 binary
uses: actions/upload-artifact@v3
with:
name: armv7-unknown-linux-musleabihf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the difference between this and the android armv7 binary? do we need both of them?

Copy link
Collaborator Author

@link2xt link2xt Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is built using Zig toolchain, and Android binary is built using NDK.

Zig uses recent version of Clang/LLVM and provides its own compiler runtime library rather than using clang one.
Android NDK that we use has an old Clang 12 IIRC and uses official LLVM compiler-rt.
Zig builds are statically linked against musl libc, Android builds are using bionic libc.

I would like to get rid of Android NDK builds, but for now let's keep them as a backup. Normally you do not need them.

@link2xt link2xt merged commit 73e7ee5 into master Mar 13, 2023
@link2xt link2xt deleted the link2xt/zig-build-arm-32 branch March 13, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants