Skip to content

refactor protocol using protobuf #1379

refactor protocol using protobuf

refactor protocol using protobuf #1379

Workflow file for this run

name: Server application
on:
pull_request:
branches: [ "master" ]
jobs:
build:
if: '! github.event.pull_request.draft'
runs-on: ${{ matrix.os }}
defaults:
run:
working-directory: ./src/rpcserver
strategy:
matrix:
include:
- os: macos-latest
arch: arm64
- os: ubuntu-latest
arch: aarch64
- os: ubuntu-latest
arch: x86_64
steps:
- uses: actions/checkout@v3
- name: Test build
run: |
if [ "${{ runner.os }}" == "macOS" ]; then
brew install protobuf protobuf-c
pip3 install mypy-protobuf
make -C ../protos/ c_protos
mkdir build
cd build
cmake .. -DTARGET=IOS
make
cmake .. -DTARGET=OSX
make
elif [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get update
sudo apt-get install -y protobuf-compiler libprotobuf-dev libprotoc-dev protobuf-c-compiler
make -C ../protos/ c_protos
mkdir build
cd build
cmake .. -DTARGET=LINUX
make
fi