forgecode / crates /forge_ci /src /steps /setup_protoc.rs
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
1851bae verified
Raw
History Blame Contribute Delete
350 Bytes
use gh_workflow::*;
/// Creates a step to setup the Protobuf compiler.
///
/// This step is reusable across all CI workflows that need protobuf
/// compilation.
pub fn setup_protoc() -> Step<Use> {
Step::new("Setup Protobuf Compiler")
.uses("arduino", "setup-protoc", "v3")
.with(("repo-token", "${{ secrets.GITHUB_TOKEN }}"))
}