servicepoint-simulator/.github/workflows/rust.yml

36 lines
720 B
YAML
Raw Permalink Normal View History

2024-05-09 13:45:28 +02:00
name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
2024-05-09 13:45:28 +02:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update repos
run: sudo apt-get update -qq
- name: Install rust toolchain
run: sudo apt-get install -qy cargo rust-clippy
- name: Install system dependencies
run: sudo apt-get install -qy liblzma-dev libfontconfig1-dev
2025-01-26 13:30:16 +01:00
- name: Run Clippy
run: cargo clippy --all-targets --all-features
2025-01-26 13:30:16 +01:00
- name: Build
run: cargo build --release --verbose