Add reusable build/test, coverage, and miri workflows#18
Merged
theswiftfox merged 1 commit intoeclipse-opensovd:mainfrom Mar 20, 2026
Merged
Conversation
Closed
4 tasks
alexmohr
reviewed
Mar 6, 2026
Contributor
alexmohr
left a comment
There was a problem hiding this comment.
Thank you! That is very cool. Just some nitpicks and questions from my end :)
This was referenced Mar 6, 2026
Contributor
|
@bburda42dot before merging, it would be great to squash the commits. I prefer that to be done by the commit author themselfs instead of doing it via the github ui 🙈 |
2e93d10 to
746a205
Compare
746a205 to
776b27d
Compare
Add workflow_call-based reusable workflows for Rust projects: - build-and-test.yml: Cargo build + test with optional Bazel support, configurable --locked, toolchain version, and test args - coverage.yml: cargo-llvm-cov with configurable threshold enforcement, crate exclusion, filename ignore regex, and LCOV artifact upload - miri.yml: Miri undefined behavior checks with configurable nightly version, crate exclusion, and MIRIFLAGS Also migrate rust-lint-and-format-action from dtolnay/rust-toolchain + separate Swatinem/rust-cache to actions-rust-lang/setup-rust-toolchain which bundles both (with rustflags: "" to preserve existing behavior). Replace fragile grep/awk coverage parsing with cargo llvm-cov --json and jq for structured, version-resilient extraction.
776b27d to
4026d96
Compare
Contributor
Author
|
@alexmohr done! |
This was referenced Mar 16, 2026
alexmohr
approved these changes
Mar 16, 2026
Contributor
|
Merging this :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
workflow_call-based reusable workflows for Rust projects:--locked, toolchain version, and test argsThis allows all OpenSOVD Rust repos to share CI infrastructure instead of rolling custom pipelines. Follows the same pattern as the existing
rust-lint-and-format-actionandpre-commit-action.First consumer: fault-lib PR #5.
Checklist
Related
Notes for Reviewers
descriptionfieldscontents: read)actions-rust-lang/setup-rust-toolchain,Swatinem/rust-cache,taiki-e/install-action,dtolnay/rust-toolchain