Merge pull request #23 from tamada/release/v0.4.2 #58
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 | |
on: | |
push: | |
branches: | |
- "**" | |
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 | |