Skip to content

Commit

Permalink
fix: update proto check
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea committed Mar 5, 2025
1 parent 55baec6 commit b734125
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,6 @@ jobs:
with:
save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/next' }}
- name: Rebuild protos
run: BUILD_PROTO=1 cargo check -p miden-node-rpc -p miden-rpc-proto
run: BUILD_PROTO=1 cargo check -p miden-node-rpc -p miden-rpc-proto -p miden-node-proto --features "rpc-client"
- name: Diff check
run: git diff --exit-code
6 changes: 3 additions & 3 deletions crates/proto/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ fn main() -> anyhow::Result<()> {
// Compile the proto file for rpc
let protos = &[proto_dir.join("rpc.proto")];
#[cfg(feature = "rpc-client")]
let generate_rpc_server = true;
let generate_rpc_client = true;
#[cfg(not(feature = "rpc-client"))]
let generate_rpc_server = false;
compile_proto_files(protos, generate_rpc_server, proto_dir, &file_descriptor_path, &dst_dir)?;
let generate_rpc_client = false;
compile_proto_files(protos, generate_rpc_client, proto_dir, &file_descriptor_path, &dst_dir)?;

generate_mod_rs(&dst_dir).context("generating mod.rs")?;

Expand Down

0 comments on commit b734125

Please sign in to comment.