Skip to content

Commit

Permalink
Add check that all proto files are included in build
Browse files Browse the repository at this point in the history
  • Loading branch information
pmai committed Dec 4, 2023
1 parent 1ec57b3 commit 23d0f0e
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 @@ -51,6 +51,11 @@ jobs:
- name: Install proto2cpp
run: git clone --depth 1 https://github.com/OpenSimulationInterface/proto2cpp.git

- 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: Prepare C++ Build
run: mkdir build

Expand Down

0 comments on commit 23d0f0e

Please sign in to comment.