FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppcheck/.github/workflows/format.yml at main · cppcheck-opensource/cppcheck · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cppcheck-opensource
/
cppcheck
Public
Notifications
You must be signed in to change notification settings
Fork
1.6k
Star
6.7k
Code
Pull requests
201
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
cppcheck
/
.github
/
workflows
/
format.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
55 lines (46 loc) · 1.48 KB
Breadcrumbs
cppcheck
/
.github
/
workflows
/
format.yml
Copy path
File metadata and controls
55 lines (46 loc) · 1.48 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name
:
format
on
:
push
:
branches
:
-
'
main
'
-
'
releases/**
'
-
'
2.*
'
tags
:
-
'
2.*
'
pull_request
:
permissions
:
contents
:
read
jobs
:
build
:
runs-on
:
ubuntu-22.04
env
:
UNCRUSTIFY_VERSION
:
0.80.1
steps
:
-
uses
:
actions/checkout@v6
with
:
persist-credentials
:
false
-
name
:
Cache uncrustify
uses
:
actions/cache@v5
id
:
cache-uncrustify
with
:
path
:
|
~/uncrustify
key
:
${{ runner.os }}-uncrustify-${{ env.UNCRUSTIFY_VERSION }}
-
name
:
build uncrustify
if
:
steps.cache-uncrustify.outputs.cache-hit != 'true'
run
:
|
set -x
wget https://github.com/uncrustify/uncrustify/archive/refs/tags/uncrustify-${{ env.UNCRUSTIFY_VERSION }}.tar.gz
tar xzvf uncrustify-${{ env.UNCRUSTIFY_VERSION }}.tar.gz
cd uncrustify-uncrustify-${{ env.UNCRUSTIFY_VERSION }}
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -- -j$(nproc) -s
mkdir ~/uncrustify
cp build/uncrustify ~/uncrustify/
-
name
:
Uncrustify check
run
:
|
UNCRUSTIFY=~/uncrustify/uncrustify ./runformat
git diff
git diff | diff - /dev/null &> /dev/null
Back
|
FazBrowse Home
|
New Git URL