-
Notifications
You must be signed in to change notification settings - Fork 2.1k
39 lines (32 loc) · 998 Bytes
/
uncrustify.yml
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: Uncrustify
on:
push:
pull_request:
workflow_dispatch:
release:
types: [published]
env:
PROJECT_TYPE: UEFI
jobs:
analyze-uncrustify:
name: Check Codestyle
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install curl git
sudo python3 -m pip install gitpython requests pyyaml
- name: CI Bootstrap
run: |
src=$(/usr/bin/curl -LfsS https://raw.githubusercontent.com/acidanthera/ocbuild/master/ci-bootstrap.sh) && eval "$src" || exit 1
- name: Run Uncrustify
run: |
python3 -c "$(/usr/bin/curl https://raw.githubusercontent.com/acidanthera/ocbuild/master/uncstrap/uncstrap.py)" ./Uncrustify.yml || exit 1
- name: Upload to Artifacts
uses: actions/upload-artifact@v3
if: failure()
with:
name: Uncrustify Artifacts
path: ./uncrustify.diff