Repository navigation
build more architectures - #189
sithlord48 wants to merge 1 commit into
Conversation
5dbe187 to
c5d0496
Compare
c5d0496 to
d63d972
Compare
|
I'm not sure whether all these architectures should be added. I've told the last person to send such a PR to create an issue first. Please wait for me to have a look before spending more time on this. |
52e3446 to
8493239
Compare
I have an issue where i want to ship appimages but if i have arm builds i have to build the tooling . why do that in my own repo when we can just do it here |
31f568b to
2cec094
Compare
|
I have a slight issue in the build, I will wait to hear back from @TheAssassin before i update this further. |
TheAssassin
left a comment
There was a problem hiding this comment.
Using emulation instead of cross compilation to create binaries for foreign architectures imposes performance issues in the CI. I guess this tool is small enough, but it is not ideal. I see that there is no realistic alternative.
As mentioned in the comments, I am not a fan of this third party actions Docker-based stuff. Building binaries for ARM etc. should be done using only infrastructure provided in this repository, as well as vanilla GitHub actions.
| - uses: actions/[email protected] | ||
| with: | ||
| submodules: recursive | ||
| - uses: uraimo/[email protected] |
There was a problem hiding this comment.
As explained on IRC, third party actions are a no-go in the supply chain. Have had very bad experiences with this kind of stuff. It limits the portability of the build scripts (i.e., I can't move to another CI service by just writing a YAML file), and it doesn't allow for testing the CI toolchain locally (unlike a script with a Dockerfile next to it).
| export CFLAGS="-m32" | ||
| export CXXFLAGS="-m32" | ||
| ;; | ||
| *) |
There was a problem hiding this comment.
This check should not be removed. If anything, it should be extended.
Cross-compilation must not be removed.
|
Note that linuxdeploy-plugin-appimage is embedded in the linuxdeploy AppImages. You will likely have to have it built for the foreign architectures as well. |
| matrix: | ||
| BUILD_TYPE: [appimage, coverage] | ||
| distro: | ||
| - bullseye |
There was a problem hiding this comment.
I think it would be better to do the build on Ubuntu bionic. It would run on more distros that way, if I'm not mistaken.
2cec094 to
f4c96e0
Compare
cc744ad to
9476ce2
Compare
9476ce2 to
fe03c43
Compare
|
This is outdated, and most of the criticism was never picked up. I plan to add more architectures myself. |
|
@TheAssassin Not sure how advanced you are with this, but I may perhaps be able to help with armhf & aarch64? I've just started to look at AppImage for a (unfortunately private) project that I contribute to where we create cross compiled binaries for Raspberry Pi on GHA ubuntu runners (no Docker, third party plugins etc, just GHA yaml scripts) The 'nuclear option' approach I took (after many failures) was to create cross toolchains using crosstool-ng with I could possibly extract some of that stuff into here, although I've not even built Is there a minimum version of GCC required to build Not sure what approach you intended to take, but let me know if you think any of this would be useful to you? |
|
The plan is to do what I've done for other repositories, which means long build times but runs with little to no maintenance: use QEMU to run ARM Docker containers as a build environment. This approach works fine both locally and on GitHub actions, and should be rather straightforward to implement (famous last words). Cross compiling is a lot more effort. This tool is not complex enough to justify that effort. I can't tell you the definite minimum GCC version, but the tool requires C++17 as a minimum. GCC 7 should suffice. I'd just try. I just build on relatively recent distros and provide static binaries for linuxdeploy itself nowadays, as it was too much effort to support platforms like CentOS 7 (which, unfortunately, continues to be supported until next year, at least on paper). I'm not a fan of static binaries in general, but for such small utilities which are used on such a variety of platforms, it's totally justified. |
Try to build more architectures
Build Status Can be seen here
Todo:
Use Docker in place of the container build step.
most rectent failure seams due to empty REPO_ROOT being set in build script.