5
0
mirror of https://github.com/cwinfo/yggdrasil-network.github.io.git synced 2024-11-14 02:10:28 +00:00
yggdrasil-network.github.io/builds.md
Arceliar 4d9860d299
Update builds.md
Make the link to artifacts use the last successful build from the master branch.
2018-04-26 20:41:43 -05:00

33 lines
1.2 KiB
Markdown

---
tags: dontlink
---
# Latest Builds
After every push to the `master` branch of the [GitHub repository](https://github.com/yggdrasil-network/yggdrasil-go), the code is automatically built by [CircleCI](https://circleci.com/gh/yggdrasil-network/yggdrasil-go) for a number of platforms.
For convenience, the [build artifacts](https://circleci.com/api/v1.1/project/github/yggdrasil-network/yggdrasil-go/latest/artifacts?branch=master&filter=successful) from the latest build are linked below:
<p id="buildArtifactLinks"></p>
<!-- TODO sort these to a useful order of some kind -->
<script type="text/javascript">
let url = 'https://circleci.com/api/v1.1/project/github/yggdrasil-network/yggdrasil-go/latest/artifacts?branch=master&filter=successful';
fetch(url)
.then(res => res.json())
.then(function (bins) {
var links = document.createElement('p')
for (var idx in bins) {
var bin = bins[idx]
var link = document.createElement('a');
link.appendChild(document.createTextNode(bin.path));
link.title = bin.path;
link.href = bin.url;
links.appendChild(link);
links.appendChild(document.createElement('br'));
}
document.getElementById("buildArtifactLinks").appendChild(links)
})
.catch(err => { throw err });
</script>