Replace REST and RabbitMQ with gRPC #33
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: 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 |