29 lines
615 B
YAML
Raw Normal View History

2024-12-04 03:25:08 +02:00
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
2024-12-04 05:06:32 +02:00
# https://github.com/actions/runner-images
runs-on: ubuntu-24.04
2024-12-04 03:25:08 +02:00
steps:
- uses: actions/checkout@v4
2024-12-04 05:20:23 +02:00
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets
2024-12-04 03:25:08 +02:00
- name: Install system packages
2024-12-04 05:29:42 +02:00
run: sudo apt install -y libgtk-4-dev libglib2.0-dev libadwaita-1-dev libsqlite3-dev
2024-12-04 03:25:08 +02:00
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose