File size: 350 Bytes
1851bae
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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 }}"))
}