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
|
2024-12-04 03:38:11 +02:00
|
|
|
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
|
2024-12-04 05:32:19 +02:00
|
|
|
- name: Install system packages
|
|
|
|
run: sudo apt install -y libgtk-4-dev libadwaita-1-dev libsqlite3-dev
|
2024-12-04 05:20:23 +02:00
|
|
|
- name: Run clippy
|
|
|
|
run: cargo clippy --all-targets
|
2024-12-04 03:25:08 +02:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|