Skip to content

Upgrade to Rust 1.95, that matches our LLVM 22 dependency #111

Upgrade to Rust 1.95, that matches our LLVM 22 dependency

Upgrade to Rust 1.95, that matches our LLVM 22 dependency #111

Workflow file for this run

name: Format Check
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup LLVM 22
uses: ZhongRuoyu/setup-llvm@v0
with:
llvm-version: 22
- name: Setup Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.95.0
components: rustfmt
- name: Check C++ formatting
run: find cpp2rust tests -name '*.cpp' -o -name '*.h' -o -name '*.c' | xargs clang-format --dry-run --Werror
- name: Check Rust formatting
run: |
cargo fmt --manifest-path rules/Cargo.toml -- --check
cargo fmt --manifest-path rule-preprocessor/Cargo.toml -- --check
cargo fmt --manifest-path libcc2rs/Cargo.toml -- --check