Skip to content

don't bring in the fastcpy_unsafe module when with safe-* features #361

don't bring in the fastcpy_unsafe module when with safe-* features

don't bring in the fastcpy_unsafe module when with safe-* features #361

Workflow file for this run

name: Coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup toolchain install stable
- name: Install llvm
run: rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
- uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage normal run
run: cargo llvm-cov --workspace --lcov --output-path lcov1.info
- name: Generate code coverage all-features
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov2.info
- name: Generate code coverage unsafe w. checked-decode
run: cargo llvm-cov --no-default-features --features frame --workspace --lcov --output-path lcov3.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: lcov1.info,lcov2.info,lcov3.info
fail_ci_if_error: true