-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 827 Bytes
/
linux.yml
File metadata and controls
36 lines (31 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
- name: Update rustup
run: rustup update
- name: Update cargo
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