fix(ci): Install mold linker and rustfmt component for CI

Add mold to system deps (needed by .cargo/config.toml linker setting)
and explicitly install rustfmt/clippy components since mise-action
doesn't always install Rust components.
This commit is contained in:
Jon Seager 2026-05-22 12:51:34 +00:00
parent b55e172d72
commit 46b0cb67ef

View file

@ -32,7 +32,10 @@ jobs:
cargo-${{ runner.os }}- cargo-${{ runner.os }}-
- name: Install system dependencies - name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y clang lld libssl-dev pkg-config run: sudo apt-get update && sudo apt-get install -y clang lld mold libssl-dev pkg-config
- name: Ensure Rust components
run: rustup component add rustfmt clippy
- name: Check formatting - name: Check formatting
run: cargo fmt -- --check run: cargo fmt -- --check
@ -67,7 +70,7 @@ jobs:
cargo-${{ runner.os }}- cargo-${{ runner.os }}-
- name: Install system dependencies - name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y clang lld libssl-dev pkg-config libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2t64 libnss3 libxshmfence1 run: sudo apt-get update && sudo apt-get install -y clang lld mold libssl-dev pkg-config libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxrandr2 libgbm1 libpango-1.0-0 libcairo2 libasound2t64 libnss3 libxshmfence1
- name: Install Chrome for Testing - name: Install Chrome for Testing
run: mise run install-e2e run: mise run install-e2e