25 lines
777 B
YAML
25 lines
777 B
YAML
name: Rust checks
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- uses: https://github.com/dtolnay/rust-toolchain@1.98.0
|
|
with:
|
|
components: rustfmt, clippy
|
|
- name: Install native UI build dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential pkg-config libfontconfig1-dev libfreetype6-dev libwayland-dev libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev libssl-dev
|
|
- name: Check formatting
|
|
run: cargo fmt --all -- --check
|
|
- name: Check Rust
|
|
run: cargo clippy --locked --workspace --all-targets -- -D warnings
|
|
- name: Build
|
|
run: cargo build --locked --workspace
|