Skip to content

feat: add max_decoding_message_size config #22

feat: add max_decoding_message_size config

feat: add max_decoding_message_size config #22

Workflow file for this run

name: Build
on:
pull_request:
paths:
- '**.rs'
- '**.toml'
- '**.lock'
- .github/workflows/build.yml
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: πŸ”¨ Build
runs-on: ubuntu-latest
steps:
- name: πŸ“š Clone repository
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}
- name: ⚑ Cache
uses: actions/cache@v2
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.rustup/toolchains
target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: πŸ“¦ Install stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- name: πŸ“¦ Install protoc
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y protobuf-compiler libprotobuf-dev
- name: πŸ”¨ Build binary
uses: actions-rs/cargo@v1
with:
command: build
args: --all-targets --all-features
clippy:
name: πŸ” Analyse using clippy
needs: build
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Install protoc
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y protobuf-compiler libprotobuf-dev
- name: πŸ“š Clone repository
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}
- name: ⚑ Cache
uses: actions/cache@v2
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.rustup/toolchains
target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: πŸ“¦ Install stable Rust with clippy
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
components: clippy
- name: πŸ” Analyse code with clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-targets --all-features
test:
name: 🚦 Test
needs: build
runs-on: ubuntu-latest
steps:
- name: πŸ“¦ Install Ethereum
run: sudo add-apt-repository -y ppa:ethereum/ethereum && sudo apt-get update && sudo apt-get install ethereum
- name: πŸ“¦ Install protoc
run: |
sudo apt update && sudo apt upgrade -y
sudo apt install -y protobuf-compiler libprotobuf-dev
- name: πŸ“š Clone repository
uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.CI_TOKEN }}
- name: ⚑ Cache
uses: actions/cache@v2
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.rustup/toolchains
target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: πŸ“¦ Install stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
- name: 🚦 Run tests
uses: actions-rs/cargo@v1
with:
command: test