name: CI on: push: branches: [main, master] pull_request: branches: [main, master] env: CARGO_TERM_COLOR: always RUSTFLAGS: -D warnings jobs: check: runs-on: ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: rustfmt, clippy - uses: Swatinem/rust-cache@v2 # Makepad needs a few system libs on Linux for the GL/X11 backends # even for `cargo check`. Install them up front so the check step # doesn't fail on a missing pkg-config dep. - name: Install Linux build deps run: | sudo apt-get update sudo apt-get install -y \ pkg-config libssl-dev libfreetype6-dev libfontconfig-dev \ libx11-dev libxcursor-dev libxi-dev libxrandr-dev libxinerama-dev \ libgl1-mesa-dev libasound2-dev - name: cargo fmt --check run: cargo fmt --all -- --check - name: cargo clippy run: cargo clippy --all-targets -- -D warnings - name: cargo test run: cargo test --all - name: cargo check (no-default-features) run: cargo check --all-targets