Skip to content

all ok again

all ok again #5

Workflow file for this run

name: Rust CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: Lint, build and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get update && sudo apt-get install -y cmake
- name: Install toolchain
run: |
rustup update stable
rustup default stable
- name: Install additional tools
run: |
rustup component add clippy llvm-tools-preview
cargo install grcov convco
- name: run linter
run: cargo clippy -- --deny "warnings"
- name: build project
run: cargo build --verbose
- name: run tests
run: |
RUSTFLAGS="-C instrument-coverage" cargo test
mkdir -p target/coverage
grcov . --binary-path ./target/debug/deps/ -s . -t html,cobertura --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o target/coverage
cat target/coverage/html/coverage.json