From 1b72f73962fdfe31e6fcbbce481e2e3cf57afb7a Mon Sep 17 00:00:00 2001 From: Alon Lukatch Date: Mon, 2 Dec 2024 15:05:08 +0200 Subject: [PATCH] testing find *.proto --- .github/workflows/starknet_p2p_specs_ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/starknet_p2p_specs_ci.yml b/.github/workflows/starknet_p2p_specs_ci.yml index 321722a..7c19f91 100644 --- a/.github/workflows/starknet_p2p_specs_ci.yml +++ b/.github/workflows/starknet_p2p_specs_ci.yml @@ -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