Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

massive revamp to support additional targets #66

Merged
merged 8 commits into from Jun 2, 2020
Merged

massive revamp to support additional targets #66

merged 8 commits into from Jun 2, 2020

Conversation

ashkulz
Copy link
Member

@ashkulz ashkulz commented Jun 1, 2020

This simplifies the configuration and adds to support for alternative architectures. A run will be done on the targets defined in .azure-pipelines.yml -- this is equivalent to building it yourself, as docker images are no longer published and built on-the-fly.

fixes #6
fixes #30
fixes #50

This removes the need to call docker-images manually, plus change it:
* remove --push as it is now redundant
* add --force to rebuild images from scratch
@ashkulz ashkulz mentioned this pull request Jun 1, 2020
@ashkulz ashkulz added this to the 0.12.x milestone Jun 1, 2020
Now that we aren't pre-building a docker image but doing it
dynamically, it doesn't make sense to build for both together.
This is done via a new "matrix" key, which automatically generates
new targets for each supported architecture. We have an explicit
mapping from distro architecture => docker platform, as the naming
conventions vary wildly.

Also switch to a new image for qemu: https://github.com/dbhi/qus
and make sure we enable it only if it's really required. Have to
always use the 32-bit version due to a bug with glibc 2.28+, see
https://bugs.launchpad.net/qemu/+bug/1805913 for details.
Now that some of the targets are generated on the fly, it makes
sense to add a list-targets command. We also won't be doing any
"full" release for all supported targets, so do away with that.
This was done by running the following command:

  ./build docker-images `./build list-targets | grep docker | cut -f2 | xargs`

While there is no guarantee that a build will work properly,
there's at least hope that a build will be successful.
This has timed out multiple times, probably due to the 32-bit
emulation required to workaround the qemu bug [1]. This will
also be useful as emulated builds can often take over 6 hours
leading to timeouts with the Azure hosted agents.

[1] https://bugs.launchpad.net/qemu/+bug/1805913
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

rework Raspberry Pi build Problems when compiling on armv8 platform. add support for ppc64le architecture
2 participants