-
Notifications
You must be signed in to change notification settings - Fork 39
31 lines (30 loc) · 897 Bytes
/
codestyle.yml
File metadata and controls
31 lines (30 loc) · 897 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
---
name: Code Style
on: [pull_request]
jobs:
check:
runs-on: ubuntu-22.04
steps:
- name: Checkout Head
uses: actions/checkout@v3
- name: Fetch Git History
run: |
git fetch --no-tags --prune --depth=1 \
origin +refs/heads/master:refs/remotes/origin/master
- name: Install Tools
run: |
curl -sL https://apt.llvm.org/llvm-snapshot.gpg.key | \
sudo apt-key add -
sudo add-apt-repository \
'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main'
sudo apt update
sudo apt install -y clang-format diffutils
- name: Check
run: |
scripts/check-style -ocode-style.diff origin/master
- name: Archive Diff
uses: actions/upload-artifact@v4
if: failure()
with:
name: diff
path: code-style.diff