feat: add max_decoding_message_size
config
#23
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: 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 |