GithubHelp home page GithubHelp logo

setup-mold's People

Contributors

garasubo avatar iamazeem avatar look avatar rui314 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

setup-mold's Issues

Rust

Tried this on the CI setup of my Github repository but it doesn't seem to improve the compilation speed.

Does this action create a config.toml pointing to this linker by default? If not it would be useful if it did for Rust repositories!

wget returns exit code 8

We end up seeing this occasionally.
image

My guess is that wget from github occasionally fails. Most likely one or two retries inside the setup-mold step would go a long way here. Other suggestions welcome too.

Creating symbolic link can fail on self-hosted runner

When make-default is enabled and the action runs on the self-hosted runner, this action can fail with following error:

ln: ‘/usr/local/bin/mold’ and ‘/usr/local/bin/mold’ are the same file

This is because the self-hosted runner environment can be reused so that the symbolic link created by the previous run exists.
To resolve this, I think there are some options:

  1. Check if there is an existing link before ln
  2. Add cleanup steps to remove this symbolic link
  3. Change nothing, and recommend to setup mold in their self-hosted runner by themselves

I'd like to hear your opinion. Thank you!

Fix symlink creation

Hi @rui314,

Thank you for all the wonderful projects! 🥇 👍
And, thank you for this GitHub action!

I was trying to integrate this in a GitHub CI pipeline and observed this:

  • mold is extracted to /usr/local/bin/mold
  • but the symlink is created from /usr/bin/mold i.e.
    - run: test ${{ inputs.make-default }} = true && sudo ln -sf /usr/bin/mold $(realpath /usr/bin/ld); true

I had to add a separate step to fix the symlink creation from the correct path:

sudo ln -sf /usr/local/bin/mold $(realpath /usr/bin/ld)

Verified:

$ realpath /usr/bin/ld
/usr/local/bin/mold

$ ld --version
mold 1.1.1 (c1af9c97e763a1d521889191a83b27bd6c43b351; compatible with GNU ld)

I'll submit a PR shortly.
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.