-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) 路 896 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (32 loc) 路 896 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
name: CI
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwayland-dev \
wayland-protocols \
libxkbcommon-dev \
libegl-dev \
libgles-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libswscale-dev \
pkg-config
- name: Cache cargo registry and build artifacts
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all --check
- run: cargo check --workspace
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace