Yoda/.github/workflows/linux.yml

32 lines
727 B
YAML
Raw Normal View History

2024-12-08 03:37:28 +02:00
name: Linux
2024-12-04 03:25:08 +02:00
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
2024-12-07 08:56:26 +02:00
RUSTFLAGS: -Dwarnings
2024-12-04 03:25:08 +02:00
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
2024-12-19 19:17:54 +02:00
- name: Update packages index
run: sudo apt update
2024-12-04 05:32:19 +02:00
- name: Install system packages
2024-12-19 17:03:46 +02:00
run: sudo apt install -y libgtk-4-dev libgtksourceview-5-dev libadwaita-1-dev libspelling-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