style: breaks line #7
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: Rust build and send coverage | |
on: | |
push: | |
branches: ["main"] | |
paths: ["src/**", "Cargo.toml"] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
steps: | |
- name: Setup Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Setup Rust LLVM coverage tools | |
run: | | |
rustup component add llvm-tools-preview | |
cargo install cargo-llvm-cov | |
- name: Checkout the project | |
uses: actions/checkout@v4 | |
- name: Test & Build | |
run: | | |
cargo llvm-cov --lcov --output-path coverage.lcov | |
cargo build | |
- name: Send coverage to coveralls | |
uses: coverallsapp/github-action@master | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage.lcov |