servicepoint-simulator/.github/workflows/rust.yml
Vinzenz Schroeter 36c9c76139
Some checks failed
Rust / build (push) Failing after 29s
change pipeline to also run on forgejo, add clippy check
2025-02-07 21:57:02 +01:00

36 lines
720 B
YAML

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"
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
- name: Run Clippy
run: cargo clippy --all-targets --all-features
- name: Build
run: cargo build --release --verbose