Yoda/.github/workflows/linux.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 23: mapping key "run" already defined at line 22 line 24: mapping key "run" already defined at line 22 line 24: mapping key "run" already defined at line 23
2025-10-10 00:10:41 +03:00

34 lines
No EOL
776 B
YAML

name: Linux
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
build:
# https://github.com/actions/runner-images
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Update packages index
run: sudo apt update
run: rustup update
run: cargo update
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Install system packages
run: sudo apt install -y libgtk-4-dev libgtksourceview-5-dev libadwaita-1-dev libspelling-1-dev libsqlite3-dev
- name: Run clippy
run: cargo clippy --all-targets
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose