Fix Compilation Error Vulnerability #21
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: 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 |