Code Monkey home page Code Monkey logo

Comments (7)

clux avatar clux commented on May 20, 2024

I tried doing a curl to github releases for rust-lang, but it kept giving me empty lists, so I gave up :|
Maybe I fsked it up though.

from muslrust.

AnderEnder avatar AnderEnder commented on May 20, 2024

@clux,
I have a draft idea for github action ci:

from muslrust.

clux avatar clux commented on May 20, 2024

Ooh. Yeah, that is promising. pkg.rust.version seems to have the latest stable in the middle of it, do you know if the file is reliably updated?

Might just try to make an extra daily travis-ci cronjobs (to avoid making more ci systems within this repo), and setup a stable branch to trigger it on.

Your system does sound more modern, with github actions, I'll check what you're doing in your fork :-)

from muslrust.

clux avatar clux commented on May 20, 2024

Quick toml parsing logic;

def rust_stable_version():
    """Retrieve the latest rust stable version from static.rust-lang.org"""
    url = 'https://static.rust-lang.org/dist/channel-rust-stable.toml'
    req = urllib.urlopen(url)
    data = toml.loads(req.read().decode("utf-8"))
    req.close()
    return data['pkg']['rust']['version'].split()[0]

from muslrust.

clux avatar clux commented on May 20, 2024

Well, think there's a second travis cronjob now on the stable branch. Guess we'll see if this works on Thursday.

from muslrust.

AnderEnder avatar AnderEnder commented on May 20, 2024

My draft injected shell script:
https://github.com/AnderEnder/muslrust/blob/switch-to-github-actions/.github/workflows/cron.yml

toml manifest provides only date, but I get the last date-time from last-modified http header. It should be correct enough, because it was taken from s3 metadata.

I would like to test it and will provide the PR .

The manifest file is used by rustup, so it is the most reliable source.

from muslrust.

clux avatar clux commented on May 20, 2024

Just for closure, ended up taking your original draft idea above, and made it work (in parallel with your testing on github actions) on travis. Forgot to close and respond.Sorry.

Still, really appreciate you helping out here. Your idea made all the difference - even if it's still travis here.

Travis has worked really well for me for this repo; let me run these 8min jobs daily for years, free - so am happy to have gotten it to a state where i could just keep it like that and leave it. The github action solution does looks really nice as well though. I'll probably look at that again that for any new repos I make.

At any rate, this is automatic here as well (as proved by 1.44.1), so closing.

from muslrust.

Related Issues (20)

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.