Skip to content

Merge pull request #82 from Asone/dependabot/cargo/h2-0.3.26 #227

Merge pull request #82 from Asone/dependabot/cargo/h2-0.3.26

Merge pull request #82 from Asone/dependabot/cargo/h2-0.3.26 #227

Workflow file for this run

name: Build & Test
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⚒ Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.66
override: true
components: rustc
- name: Install protobuf dependency
run: sudo apt-get -y install protobuf-compiler
- name: ⚡ Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: 🏗 Build
run: cargo build --verbose
- name: 🎯 Run tests
env:
RUST_TEST_THREADS: 1
run: cargo test --verbose