Skip to content

1.0.0

1.0.0 #80

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
test:
# This build image is compatable with AWS Linux 2
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
env:
RUSTFLAGS: "-C target-cpu=native"
RUST_BACKTRACE: full
name: Lint & Test
steps:
- name: Checkout source Git repo
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain install stable --profile minimal --target ${{ matrix.target }}
- run: rustup component add rustfmt clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: cargo fetch
- run: cargo fmt -- --check --color always
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo test --release