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

ci: build arm binaries #12

Merged
merged 1 commit into from
Apr 30, 2022
Merged

ci: build arm binaries #12

merged 1 commit into from
Apr 30, 2022

Conversation

Tachi107
Copy link
Contributor

@Tachi107 Tachi107 commented Apr 30, 2022

I have split build.sh in two parts. The first sets up and destroys the chroot, the other runs the actual builds command inside of the Alpine environment.

This makes it possible to run chroot_build.sh on CI's native architecture so that it handles creation of the native chroot, and run only build.sh in the run-on-arch action, that creates an Alpine container itelf.

Then I removed patchelf from the build because it seems that it was only used by the shared appstreamcli build. Please correct me if I'm wrong.

I also substituted version numbers with "*" when possible, so that updating versions of build binaries is easier (you'll only have to change the download URL)

As with #10 the release part is broken in my fork, but should be fine on your repo

Fixes #11

I have split build.sh in two parts. The first sets up and destroys the
chroot, the other runs the actual builds command inside of the Alpine
environment.

This makes it possible to run chroot_build.sh on CI's native
architecture so that it handles creation of the native chroot, and run
only build.sh in the run-on-arch action, that creates an Alpine
container itelf.

I also substituted version numbers with "*" when possible, so that
updating versions of build binaries is easier (you'll only have to
change the download URL)
@probonopd probonopd merged commit 9121b72 into probonopd:master Apr 30, 2022
@Tachi107 Tachi107 deleted the multiarch branch May 1, 2022 09:11
@Tachi107
Copy link
Contributor Author

Tachi107 commented May 1, 2022

Can you confirm that everything works as before?

@probonopd
Copy link
Owner

https://github.com/probonopd/static-tools/releases/tag/continuous is looking excellent. I cannot thank you enough. You are a true master of your craft! 👍

@Tachi107
Copy link
Contributor Author

Tachi107 commented May 1, 2022

Haha thanks, I've been wanting to figure out how to build binaries statically with Meson for a while, and this seemed the perfect occasion :)

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.

Build for aarch and aarch64 (32-bit ARM and 64-bit ARM)
2 participants