Skip to content

Support Github Actions continuous integration? #325

Closed

Description

@anthrotype

Hi, I love multibuild and use it for all my projects' native wheels.
I recently started to learn about Github Actions and was wondering if multibuild could be adapted to also run from Github's continous integration, in alternative to Travis. Has anybody tried?
Feel free to close if this out of scope, thanks.

Activity

  1. riddell-stan commented on Apr 8, 2020

    @riddell-stan

    I'd like an alternative as well. travis-ci has not been working reliably for me in recent days. Also, it would be nice to have all the wheels (linux, macos, win) being built by a single service.

    https://github.com/joerick/cibuildwheel seems to have figured out a way to use GitHub Actions.

    Update (August 2020): travis-ci.com is working fine. Moving repos from travis-ci.org to travis-ci.com has not always been smooth. I believe that was the source of my problem.

  2. mattip commented on Apr 8, 2020

    @mattip
    Collaborator

    I think only travis supports ppc64le and s390x right now, so until that support is more widespread it might be tough to move away. There are more alternatives for aarch64.

  3. changed the title [-]support Github Actions continuous integration?[/-] [+]Support Github Actions continuous integration?[/+] on Apr 22, 2020
  4. webknjaz commented on Apr 24, 2020

    @webknjaz

    It's possible to wrap this repo as a GitHub Action so that other people can use it without having to copy stuff into their own repos (i.e. just 1-2 line config).

    This would require an action.yml file in the repo root and some thin wrapper for mapping the inputs and calling the shell scripts in JS.

    I have a simple Action solely for uploading dists @ https://github.com/pypa/gh-action-pypi-publish and have a lot of experience with GH integrations and alike so feel free to ask me for help/pointers if needed.

  5. mattip commented on Dec 5, 2020

    @mattip
    Collaborator

    The dipy-wheels project is running multibuild as a github workflow with a matrix of ubuntu-latest, macos-latest and various python versions. It seems quite straight-forward.

  6. MarkWieczorek commented on Jan 17, 2021

    @MarkWieczorek

    It would be great if someone could add a simple github action workflow to the documentation of this project. After blindly trying to do this myself, and looking at the projects mentioned above, I can't get this to work.

  7. mattip commented on Jan 17, 2021

    @mattip
    Collaborator

    What didn't work?

  8. MarkWieczorek commented on Jan 17, 2021

    @MarkWieczorek

    What didn't work?

    As I don't really understand the internals of how multibuild works, I might be making some really stupid mistakes. In any case, for linux builds, I end with this error:

    Digest: sha256:968432a07463344d4818f2c19d9b9149306cf8093390eb99bf22b670f5823f3d
    Status: Downloaded newer image for quay.io/pypa/manylinux1_x86_64:latest
    quay.io/pypa/manylinux1_x86_64:latest
    http://vault.centos.org/5.11/extras/x86_64/repodata/primary.sqlite.bz2: [Errno 4] IOError: <urlopen error (99, 'Cannot assign requested address')>
    Trying other mirror.
    http://vault.centos.org/5.11/extras/x86_64/repodata/primary.sqlite.bz2: [Errno 4] IOError: <urlopen error (99, 'Cannot assign requested address')>
    Trying other mirror.
    Error: failure: repodata/primary.sqlite.bz2 from extras: [Errno 256] No more mirrors to try.
    Error: Process completed with exit code 1.
    

    Whereas for macos builds, I get a brew error:

    Error: gcc 10.2.0 is already installed
    To upgrade to 10.2.0_2, run `brew upgrade gcc`.
    

    Here is a link to the full output if that interests you: https://github.com/SHTOOLS/build-shtools/actions/runs/491515430

  9. MarkWieczorek commented on Jan 17, 2021

    @MarkWieczorek

    Switching to manylinux2010/2014 gets me a little further, but the build fails while trying to install openblas:

    + local tar_path=/io/archives/openblas-0.3.10-Linux-x86_64.tar.gz
    + cd /
    + tar zxf /io/archives/openblas-0.3.10-Linux-x86_64.tar.gz
    
    gzip: stdin: not in gzip format
    tar: Child returned status 1
    
  10. mattip commented on Oct 23, 2024

    @mattip
    Collaborator

    cibuildwheel has a nice github action. If your github workflow does not involve too many third party libraries, perhaps you should migrate to it. There are examples of non-github uses of multibuild, for instance rasterio is using it on cirrus CI. We are not likely to develop multibuild into a github action without sponsorship.

  11. mattip commented on Oct 23, 2024

    @mattip
    Collaborator

    Here is another nice example of using multibuild in a github action.

    I will close this, since it seems the request can be fulfilled. Please reopen or open a new issue if I misunderstood.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions