Fix obsolete Rust coverage flags #138
This file contains hidden or 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: Rust | |
on: [push] | |
env: | |
CARGO_INCREMENTAL: '0' | |
RUSTFLAGS: '-Cinstrument-coverage' | |
RUSTDOCFLAGS: '-Cinstrument-coverage' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Install Rust nightly | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: nightly | |
- name: Install cargo-llvm-cov | |
run: cargo install cargo-llvm-cov | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Build documentation | |
run: cargo doc --verbose | |
- name: Generate coverage report | |
run: cargo llvm-cov --lcov --output-path lcov.info | |
- name: Upload coverage report to Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: lcov.info |