Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,34 @@ jobs:

- name: Build release
run: cargo build --release

coverage:
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- uses: actions/checkout@v4

- name: System dependencies
run: |
pacman -Syu --noconfirm --needed \
base-devel \
gtk4 libadwaita glib2 \
pkgconf

- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy, llvm-tools-preview

- uses: taiki-e/install-action@cargo-llvm-cov

- uses: Swatinem/rust-cache@v2

- name: Generate coverage
run: cargo llvm-cov --lcov --output-path lcov.info

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: lcov-info
path: lcov.info
if-no-files-found: error
Loading