Disable al the features possible in dependencies #835
Workflow file for this run
This file contains 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: Build and Test with Coverage | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: # Build every day at 5PM UTC | |
- cron: '0 17 * * *' | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
RUSTFLAGS: -C instrument-coverage | |
LLVM_PROFILE_FILE: pigg-%p-%m.profraw | |
jobs: | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gaurav-nelson/github-action-markdown-link-check@v1 | |
clippy-build-and-test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ macos-14, ubuntu-latest, windows-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
profile: minimal | |
components: clippy,llvm-tools-preview | |
- name: InstallCoverageTools | |
if: runner.os != 'Windows' | |
run: cargo install grcov | |
- name: Setup LCOV | |
if: runner.os != 'Windows' | |
uses: hrishikesh-kadam/setup-lcov@v1 | |
with: | |
ref: HEAD | |
- name: make | |
run: make clippy build test | |
- name: Add aarch64 Target with Rustup | |
if: runner.os == 'Linux' | |
run: rustup target add aarch64-unknown-linux-gnu | |
- name: Install Cross Tool | |
if: runner.os == 'Linux' | |
run: cargo install cross | |
- name: cross | |
if: runner.os == 'Linux' | |
run: make cross | |
- name: clean up coverage | |
if: runner.os != 'Windows' | |
run: | | |
grcov . --binary-path target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore "/*" -o lcov.info | |
lcov --remove lcov.info -o lcov.info --erase-functions "(?=^.*fmt).+" | |
- name: UploadCoverage | |
if: runner.os != 'Windows' | |
uses: codecov/codecov-action@v4 | |
with: | |
fail_ci_if_error: true | |
file: lcov.info | |
flags: unittests | |
name: codecov-umbrella | |
verbose: true |