Skip to content

Commit

Permalink
Merge pull request #746 from pmai/build/check-proto-build-setup
Browse files Browse the repository at this point in the history
Add check that all proto files are included in build
  • Loading branch information
pmai authored Mar 8, 2024
2 parents e47e87c + 5e06e28 commit c60c72a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/protobuf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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@v5
with:
Expand Down

0 comments on commit c60c72a

Please sign in to comment.