refactor protocol using protobuf #1378
Workflow file for this run
This file contains 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: 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 |