Skip to content

ci: add Windows runner to test matrix (#17) #23

ci: add Windows runner to test matrix (#17)

ci: add Windows runner to test matrix (#17) #23

Workflow file for this run

name: Coverage
on:
push:
branches: [main]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
name: cargo-llvm-cov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libopenmpt
run: |
sudo apt-get update
sudo apt-get install -y libopenmpt-dev libasound2-dev pkg-config
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
with:
key: coverage
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate coverage report
run: cargo llvm-cov --all-targets --lcov --output-path lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@v4
with:
files: lcov.info
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}