Skip to content

Commit

Permalink
find proto step
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonLStarkWare committed Dec 2, 2024
1 parent 6598a3e commit c051a99
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/starknet_p2p_specs_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,30 @@ jobs:
with:
version: ${{env.PROTOC_VERSION}}


- name: Find .proto files
id: find-protos
run: |
proto_files=$(find . -name "*.proto")
if [ -z "$proto_files" ]; then
echo "No .proto files found."
exit 1
fi
echo "Found the following .proto files:"
echo "$proto_files"
# Save the list as an output
echo "proto_files=$(echo "$proto_files" | tr '\n' ' ')" >> $GITHUB_OUTPUT
- name: Validate rust
run: |
echo "Using the following .proto files from previous step:"
echo "${{ steps.find-protos.outputs.proto_files }}"
protoc --rust_out=experimental-codegen=enabled,kernel=upb:$(mktemp -d) ${{ steps.find-protos.outputs.proto_files }}
# for file in ${{ steps.find-protos.outputs.proto_files }}; do
# echo "Processing $file"
# protoc --rust_out=experimental-codegen=enabled,kernel=upb:$(mktemp -d) file
# done

# - name: Validate .proto files for Rust compatibility
# run: |
# protoc --rust_out=experimental-codegen=enabled,kernel=upb:$(mktemp -d) *.proto
Expand Down

0 comments on commit c051a99

Please sign in to comment.