clean up #279
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Proto Compilation Check | |
| on: | |
| push: | |
| paths: | |
| - '**.proto' | |
| pull_request: | |
| paths: | |
| - '**.proto' | |
| jobs: | |
| check-proto: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Protobuf Compiler | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y protobuf-compiler | |
| - name: Check protoc version | |
| run: protoc --version | |
| - name: Create temp directory for compilation | |
| run: mkdir -p /tmp/proto_compiled | |
| - name: Compile Proto files | |
| run: | | |
| PROTO_FILES=$(find api -name '*.proto') | |
| echo "Compiling $PROTO_FILES" | |
| protoc --proto_path=. $PROTO_FILES --cpp_out=/tmp/proto_compiled --fatal_warnings |