-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
automate the manual switchover for stable #71
Comments
I tried doing a curl to github releases for rust-lang, but it kept giving me empty lists, so I gave up :| |
@clux,
|
Ooh. Yeah, that is promising. 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 :-) |
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] |
Well, think there's a second travis cronjob now on the stable branch. Guess we'll see if this works on Thursday. |
My draft injected shell script:
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. |
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. |
Currently, I make a few git actions to get travis to release a new stable image, but would like to be able to step away and not miss the patch releases.
We could automate this pretty easily if there is an API to get the latest stable rust release (just the version), I just haven't found it. If anyone know it would be very helpful!
The text was updated successfully, but these errors were encountered: