Rework core to be ABI-safe #63
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: Test coverage | |
| on: [push, pull_request] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| CARGO_NET_GIT_FETCH_WITH_CLI: true | |
| jobs: | |
| test-coverage: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| path: 'mfio-repo' | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: nightly-2024-11-22 | |
| override: true | |
| components: llvm-tools-preview | |
| - run: cargo install grcov | |
| - name: Run tests with coverage | |
| run: | | |
| cd mfio-repo | |
| export CARGO_INCREMENTAL=0 | |
| export RUSTFLAGS="-Cinstrument-coverage -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | |
| export RUSTDOCFLAGS="-Cpanic=abort" | |
| export LLVM_PROFILE_FILE="your_name-%p-%m.profraw" | |
| cargo build --workspace --exclude mfio-derive --all-features | |
| cargo test --workspace --exclude mfio-derive --all-features | |
| grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info | |
| bash <(curl -s https://codecov.io/bash) -f lcov.info -t ${{ secrets.CODECOV_TOKEN }}; | |