Skip to content

Replace REST and RabbitMQ with gRPC #33

Replace REST and RabbitMQ with gRPC

Replace REST and RabbitMQ with gRPC #33

Workflow file for this run

name: Check Generated Protos
on:
push:
paths:
- 'ldk-server-protos/**'
pull_request:
paths:
- 'ldk-server-protos/**'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-protos:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: Install Rust stable toolchain
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
- name: Generate protos
run: RUSTFLAGS="--cfg genproto" cargo build -p ldk-server-protos
- name: Format generated code
run: rustup component add rustfmt && cargo fmt --all
- name: Check for differences
run: |
if ! git diff --exit-code; then
echo "error: Generated protobuf files are out of date. Run: RUSTFLAGS=\"--cfg genproto\" cargo build -p ldk-server-protos && cargo fmt --all"
exit 1
fi