Thanks to @nc-x's, @genotrance's and @kaushalmodi's efforts, we now offer nightly Nim builds.
Cheers!
https://github.com/nim-lang/nightlies/releases
Of course, please report if you encounter any troubles.
This is beautiful! Best part is we don't have to maintain our own build farm.
A moment of silence for our old friend, NimBuild :)
Cool!
The download page here needs updating with a link: https://nim-lang.org/install.html (it says "We currently don't offer nightly builds")
Great (although I personally prefer halfway stable releases) Thank you.
Out of curiosity: how come the jump from 19.2 -> 19.9?.
Looks like Windows devel jobs are timing out.
cc: @kaushalmodi
@araq Can you please look at this Travis failure: https://travis-ci.org/nim-lang/nightlies/builds/477664313 (the 139.1 and 139.2 jobs)?
The windows builds are timing out even without koch testinstall running there.
Is there any possibility to trim things out of tools/winrelease?
That PR has been merged and official nightly build is available on wandbox. But when I select a nim HEAD on wandbox, it uses nim-0.19.2 not 0.19.9.
Problem is this URL doesn't always return latest devel version (currently, it is ver 0.19.9), but it could return a latest stable version (0.19.2)
https://api.github.com/repos/nim-lang/nightlies/releases/latest
I'm studying about Github API to get latest devel version.
Problem is this URL doesn't always return latest devel version
That's correct.
You will need to use the GitHub API and get the required release after parsing the JSON. Here's an example I found in wild: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c.
I think you would need to look at both 0th and 1st elements returned in the JSON at https://api.github.com/repos/nim-lang/nightlies/releases, and then get the element where the name field matches "-bdevel-".
I just committed this little change that adds ``-b<BRANCH NAME>`` to the Release name.
Hopefully that helps.
@demotomohiro
The Nim nightlies repo has been updated so that the releases are named with a new scheme: <BRANCH>-<DATE>-<HASH>.
New releases with this new naming scheme will be out in about 1-2 hours.
Then you can get the JSON data https://api.github.com/repos/nim-lang/nightlies/releases, and inspect just the first two elements. The element which has the name field beginning with devel- will contain the latest nightly build from HEAD (devel branch).
Let me know how this goes.
Thank you!
I can download latest devel release with following command:
curl -s https://api.github.com/repos/nim-lang/nightlies/releases | grep -m 1 "\"browser_download_url\": \"https://github.com/nim-lang/nightlies/releases/download/devel-.*-linux\.tar\.xz\"" | sed -E 's/.*"browser_download_url\": \"([^"]+)\"/\1/' | wget -qi - -O nim.tar.xz
I fixed the script that download and build nighly release Nim.
https://github.com/demotomohiro/wandbox-builder/blob/fixnimhead/build/nim-head/install.sh
I will send PR of this fix to wandbox after testing this for few days.
I thought GitHub GraphQL API is better than REST API because I can minimize amount of data receive from GitHub. But GraphQL API require an OAuth token and putting it on public repository is not a good idea.
curl -s https://api.github.com/repos/nim-lang/nightlies/releases | \
grep -m 1 "\"browser_download_url\": \"https://github.com/nim-lang/nightlies/releases/download/\(.*\W\)\?devel\W.*-linux\.tar\.xz\"" | \
sed -E 's/.*"browser_download_url\": \"([^"]+)\"/\1/' | \
wget -qi - -O nim.tar.xz
Here is a script to download and build nighly release Nim.
https://github.com/melpon/wandbox-builder/blob/master/build/nim-head/install.sh
We are now creating Linux binaries for x32 and x64 in nightlies. These are built using Holy Build Box and should work with glibc based distros going as far back as CentOS 6. Feedback appreciated.
https://github.com/nim-lang/nightlies/releases
@demotomohiro - you might need to update your script to download the right architecture. Also, you can simply extract and run instead of having to rebuild.