Comments (7)
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.
@clux,
I have a draft idea for github action ci:
- a small cron task(every 4-8 hours?) which evaluates availability of new release using rustup dist manifest date: https://static.rust-lang.org/dist/channel-rust-stable.toml
- send
repository_dispatch event
to the repository - run a build on repository_dispatch event
from muslrust.
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.
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.
Well, think there's a second travis cronjob now on the stable branch. Guess we'll see if this works on Thursday.
from muslrust.
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.
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)
- Please rebuild "stable" less often or add a "LTS" version HOT 3
- What do you think about using tags like official Rust Docker image? HOT 1
- feature request: add protoc into the image HOT 3
- Add zlib-ng? HOT 4
- Changes needed to get rust-rdkafka built
- must-ar not executing successfully while building ring HOT 6
- Add test for latest tonic HOT 3
- Make builder cancellable with Ctrl-C? HOT 1
- Failed to find tool. Is `musl-g++` installed? HOT 1
- failed to compile diesel_cli in clux/muslrust image HOT 1
- WORKDIR defaults to /volume -- is this desired? HOT 1
- It would be awesome to use mold to build HOT 2
- What do you think about this anti-musl post? HOT 6
- How to disable `cc1: all warnings being treated as errors` HOT 1
- DNS errors in binaries built with muslrust when run in rootless Docker HOT 1
- Linker errors when building binaries (failed to set dynamic section sizes: bad value) HOT 5
- Unable to build prost due to old version of cmake on ubuntu:xenial HOT 3
- Build and fetch errors with clux/muslrust:1.60.0 HOT 18
- explore possibility of removing older C libraries
- explore building an arm64 variant HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from muslrust.