Skip to content

docs: document rustup "rustc not applicable" fix for Raspberry Pi builds #104

docs: document rustup "rustc not applicable" fix for Raspberry Pi builds

docs: document rustup "rustc not applicable" fix for Raspberry Pi builds #104

Workflow file for this run

name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libexiv2-dev libfontconfig1-dev python3-dev
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
# The optional windowed display (minifb) loads X11/Wayland via dlopen, so it builds
# without extra system libraries. Check it here so it does not bit-rot.
- name: Clippy (minifb feature)
run: cargo clippy --features minifb --all-targets -- -D warnings
- name: Build (minifb feature)
run: cargo build --features minifb --verbose