Skip to content

Commit

Permalink
testing find *.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonLStarkWare committed Dec 2, 2024
1 parent 119d239 commit 1b72f73
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/starknet_p2p_specs_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,25 @@ jobs:
with:
version: ${{env.PROTOC_VERSION}}

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

- name: Validate .proto files for Python compatibility
run: |
protoc --python_out=$(mktemp -d) *.proto
echo "Searching for .proto files..."
proto_files=$(find . -name "*.proto")
if [ -z "$proto_files" ]; then
echo "No .proto files found."
exit 0
fi
echo "Found the following .proto files:"
echo "$proto_files"
echo "Compiling protos..."
echo "$proto_files" | xargs protoc --proto_path=.
# find . -name "*.proto" -exec protoc --proto_path=. --python_out=$(mktemp -d) {} +
# protoc --python_out=$(mktemp -d) ./p2p/proto/*.proto
# protoc --python_out=$(mktemp -d) ./p2p/proto/**/*.proto

Expand Down

0 comments on commit 1b72f73

Please sign in to comment.