Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/generate-build-badges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Generate Build Badges

on:
workflow_run:
workflows: ["CI"]
types:
- completed

jobs:
generate:
runs-on: ubuntu-latest
steps:
- id: extract
run: |
data=$(gh api /repos/DARMA-tasking/magistrate/actions/runs/$RUN_ID/jobs)

printf "names<<EOF\n%s\nEOF\n" "$(echo "$data" | jq -r '.jobs[] | select(.name | startswith("bake")) | .name | ltrimstr("bake (") | rtrimstr(")")')" >>"$GITHUB_OUTPUT"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JacobDomagala Optional: we could trim magistrate-build- from the beginning (or maybe even magistrate-build-amd64-) to make the badges shorter and focused on the important aspects of the builds.
image

printf "results<<EOF\n%s\nEOF\n" "$(echo "$data" | jq -r '.jobs[] | select(.name | startswith("bake")) | .conclusion')" >>"$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_ID: ${{ github.event.workflow_run.id }}

- uses: DARMA-tasking/badge-generator@master
with:
names: ${{ steps.extract.outputs.names }}
results: ${{ steps.extract.outputs.results }}
github_token: ${{ secrets.BADGE_TOKEN }}
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<div align="center">
<h1><b>magistrate</b> => serialization and checkpointing library</h1>
<br>

[![codecov](https://codecov.io/gh/DARMA-tasking/magistrate/branch/develop/graph/badge.svg)](https://codecov.io/gh/DARMA-tasking/magistrate)
[![CI](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml/badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml)
[![Docs](https://github.com/DARMA-tasking/checkpoint/actions/workflows/build-docs.yml/badge.svg)](https://github.com/DARMA-tasking/checkpoint/actions/workflows/build-docs.yml)
</div>
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-22-04-clang-11-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-20-04-gcc-10-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-20-04-clang-10-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-22-04-clang-13-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-20-04-clang-9-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-20-04-gcc-9-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-22-04-clang-12-cpp-vt-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-20-04-gcc-9-cuda-11-4-3-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-22-04-clang-14-cpp-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)
[![](https://github.com/DARMA-tasking/badge-generator/wiki/DARMA-tasking/magistrate/magistrate-build-amd64-ubuntu-20-04-gcc-9-cpp-docs-badge.svg)](https://github.com/DARMA-tasking/magistrate/actions/workflows/build-docker-images.yml?query=branch%3Adevelop)

## Read the documentation

Expand Down