forked from Cpp2Rust/cpp2rust
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 703 Bytes
/
Copy pathformat.yml
File metadata and controls
39 lines (30 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Format Check
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup LLVM
uses: ZhongRuoyu/setup-llvm@v0
with:
llvm-version: 22
- name: Setup Python
run: pip install ruff
- name: Configure
run: cmake -GNinja -B build -S .
- name: Format files
run: ninja format
working-directory: build
- name: Check format
run: git diff --exit-code