Skip to content

Fix Compilation Error Vulnerability #21

Fix Compilation Error Vulnerability

Fix Compilation Error Vulnerability #21

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo
- name: Set-Up
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Install toolchain
# hacky way to install rust. Rustup is pre-installed on runners. Calling rustup show will detect the rust-toolchain.toml, and subsequently
# download the needed toolchain and components.
run: |
rustup toolchain install stable
rustup show
- name: Check
run: cargo check
- name: Test
run: cargo test