From 62793fffd9bd38eeba6506c3d7913d1a9ad17be7 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Mon, 4 Dec 2023 12:19:27 +0100 Subject: [PATCH] Add check that all proto files are included in build --- .github/workflows/protobuf.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/protobuf.yml b/.github/workflows/protobuf.yml index c719a68ce..600ea4df5 100644 --- a/.github/workflows/protobuf.yml +++ b/.github/workflows/protobuf.yml @@ -17,6 +17,11 @@ jobs: with: submodules: true + - name: Check Build Setup + run: | + ( result=0 ; for f in *.proto ; do grep -wq "$f" CMakeLists.txt || { echo "Missing $f in CMakeLists.txt" && let "result++"; } ; done ; exit $result ) + ( result=0 ; for f in *.proto ; do grep -q "'$f'" setup.py || { echo "Missing $f in setup.py" && let "result++"; } ; done ; exit $result ) + - name: Setup Python uses: actions/setup-python@v2 with: