Skip to content

Zig build: add status badges #433

@inge4pres

Description

@inge4pres

We should include the Zig build into the D script that populates the build statuses in the README.


Originally posted by @Mizux in #431 (comment)

generated_badges.d stuff is for a following PR (I'll be on it, i guess?) just following the naming convention should make it straightforward.

Concerning the "badge" icon, we are using https://img.shields.io to generated them but since this one "doesn't know" the zig (and bazel) logo we will need to inject it as a base64 svg string
see bazel logo: https://github.com/zig-o11y/cpu_features/blob/d79830b223cb5fd3d5f49e0c09d34d9f1e714157/scripts/generate_badges.d#L18
so I was suggesting we could do the same for zig logo (using the official zig logo svg source code) once this PR is submitted...

for the enum, adding "Zig" to this enum D script, running the script should look for any __zig.yml then, if found any, add it to its internal list then auto generated build status markdown table that we just have to copy/paste in the readme to get the zig build status as first party builder

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions