Skip to content

Commit 1c48a3b

Browse files
committed
Update of CI files
1 parent b2b3a24 commit 1c48a3b

29 files changed

+644
-444
lines changed

.clang-format

Lines changed: 273 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,278 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -4
4+
AlignAfterOpenBracket: Align
5+
AlignArrayOfStructures: None
6+
AlignConsecutiveAssignments:
7+
Enabled: false
8+
AcrossEmptyLines: false
9+
AcrossComments: false
10+
AlignCompound: false
11+
AlignFunctionPointers: false
12+
PadOperators: false
13+
AlignConsecutiveBitFields:
14+
Enabled: false
15+
AcrossEmptyLines: false
16+
AcrossComments: false
17+
AlignCompound: false
18+
AlignFunctionPointers: false
19+
PadOperators: false
20+
AlignConsecutiveDeclarations:
21+
Enabled: false
22+
AcrossEmptyLines: false
23+
AcrossComments: false
24+
AlignCompound: false
25+
AlignFunctionPointers: false
26+
PadOperators: false
27+
AlignConsecutiveMacros:
28+
Enabled: false
29+
AcrossEmptyLines: false
30+
AcrossComments: false
31+
AlignCompound: false
32+
AlignFunctionPointers: false
33+
PadOperators: false
34+
AlignConsecutiveShortCaseStatements:
35+
Enabled: false
36+
AcrossEmptyLines: false
37+
AcrossComments: false
38+
AlignCaseColons: false
39+
AlignEscapedNewlines: DontAlign
40+
AlignOperands: DontAlign
41+
AlignTrailingComments:
42+
Kind: Always
43+
OverEmptyLines: 0
44+
AllowAllArgumentsOnNextLine: false
45+
AllowAllParametersOfDeclarationOnNextLine: false
46+
AllowBreakBeforeNoexceptSpecifier: OnlyWithParen
47+
AllowShortBlocksOnASingleLine: true
48+
AllowShortCaseLabelsOnASingleLine: false
49+
AllowShortCompoundRequirementOnASingleLine: true
50+
AllowShortEnumsOnASingleLine: false
51+
AllowShortFunctionsOnASingleLine: All
52+
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
53+
AllowShortLambdasOnASingleLine: All
54+
AllowShortLoopsOnASingleLine: false
55+
AlwaysBreakAfterDefinitionReturnType: None
56+
AlwaysBreakAfterReturnType: None
57+
AlwaysBreakBeforeMultilineStrings: true
58+
AlwaysBreakTemplateDeclarations: Yes
59+
AttributeMacros:
60+
- __capability
161
BasedOnStyle: LLVM
2-
UseTab: Never
3-
IndentWidth: 4
62+
BinPackArguments: true
63+
BinPackParameters: true
64+
BitFieldColonSpacing: Both
65+
BraceWrapping:
66+
AfterCaseLabel: false
67+
AfterClass: true
68+
AfterControlStatement: MultiLine
69+
AfterEnum: true
70+
AfterExternBlock: true
71+
AfterFunction: true
72+
AfterNamespace: true
73+
AfterObjCDeclaration: false
74+
AfterStruct: true
75+
AfterUnion: true
76+
BeforeCatch: false
77+
BeforeElse: false
78+
BeforeLambdaBody: true
79+
BeforeWhile: false
80+
IndentBraces: false
81+
SplitEmptyFunction: true
82+
SplitEmptyRecord: true
83+
SplitEmptyNamespace: true
84+
BreakAdjacentStringLiterals: false
85+
BreakAfterAttributes: Leave
86+
BreakAfterJavaFieldAnnotations: true
87+
BreakArrays: true
88+
BreakBeforeBinaryOperators: NonAssignment
89+
BreakBeforeConceptDeclarations: Always
490
BreakBeforeBraces: Allman
5-
AllowShortBlocksOnASingleLine: true
6-
AllowShortIfStatementsOnASingleLine: true
7-
IndentCaseLabels: true
91+
BreakBeforeInlineASMColon: OnlyMultiline
92+
BreakBeforeTernaryOperators: true
93+
BreakConstructorInitializers: BeforeComma
94+
BreakInheritanceList: BeforeComma
95+
BreakStringLiterals: true
896
ColumnLimit: 120
97+
CommentPragmas: '^ IWYU pragma:'
98+
CompactNamespaces: false
99+
ConstructorInitializerIndentWidth: 4
100+
ContinuationIndentWidth: 4
101+
Cpp11BracedListStyle: true
102+
DerivePointerAlignment: false
103+
DisableFormat: false
104+
EmptyLineAfterAccessModifier: Never
105+
EmptyLineBeforeAccessModifier: LogicalBlock
106+
ExperimentalAutoDetectBinPacking: false
107+
FixNamespaceComments: true
108+
ForEachMacros:
109+
- foreach
110+
- Q_FOREACH
111+
- BOOST_FOREACH
112+
IfMacros:
113+
- KJ_IF_MAYBE
114+
IncludeBlocks: Preserve
115+
IncludeCategories:
116+
# Standard library headers come before anything else
117+
- Regex: '^<[a-z_]+>'
118+
Priority: -1
119+
SortPriority: 0
120+
CaseSensitive: false
121+
- Regex: '^<.+\.h(pp)?>'
122+
Priority: 1
123+
SortPriority: 0
124+
CaseSensitive: false
125+
- Regex: '^<.*'
126+
Priority: 2
127+
SortPriority: 0
128+
CaseSensitive: false
129+
- Regex: '.*'
130+
Priority: 3
131+
SortPriority: 0
132+
CaseSensitive: false
133+
IncludeIsMainRegex: ''
134+
IncludeIsMainSourceRegex: ''
135+
IndentAccessModifiers: false
136+
IndentCaseBlocks: false
137+
IndentCaseLabels: true
138+
IndentExternBlock: NoIndent
139+
IndentGotoLabels: true
140+
IndentPPDirectives: AfterHash
141+
IndentRequiresClause: true
142+
IndentWidth: 4
143+
IndentWrappedFunctionNames: false
144+
InsertBraces: true
145+
InsertNewlineAtEOF: true
146+
InsertTrailingCommas: None
147+
IntegerLiteralSeparator:
148+
Binary: 0
149+
BinaryMinDigits: 0
150+
Decimal: 0
151+
DecimalMinDigits: 0
152+
Hex: 0
153+
HexMinDigits: 0
154+
JavaScriptQuotes: Double
155+
JavaScriptWrapImports: true
156+
KeepEmptyLinesAtTheStartOfBlocks: false
157+
KeepEmptyLinesAtEOF: false
158+
LambdaBodyIndentation: Signature
159+
LineEnding: LF
160+
MacroBlockBegin: ''
161+
MacroBlockEnd: ''
162+
MaxEmptyLinesToKeep: 1
163+
NamespaceIndentation: None
164+
ObjCBinPackProtocolList: Never
165+
ObjCBlockIndentWidth: 2
166+
ObjCBreakBeforeNestedBlockParam: true
167+
ObjCSpaceAfterProperty: false
168+
ObjCSpaceBeforeProtocolList: true
169+
PackConstructorInitializers: BinPack
170+
PenaltyBreakAssignment: 2
171+
PenaltyBreakBeforeFirstCallParameter: 1
172+
PenaltyBreakComment: 300
173+
PenaltyBreakFirstLessLess: 120
174+
PenaltyBreakOpenParenthesis: 0
175+
PenaltyBreakScopeResolution: 500
176+
PenaltyBreakString: 1000
177+
PenaltyBreakTemplateDeclaration: 10
178+
PenaltyExcessCharacter: 1000000
179+
PenaltyIndentedWhitespace: 0
180+
PenaltyReturnTypeOnItsOwnLine: 200
9181
PointerAlignment: Left
10-
AccessModifierOffset: -4
11-
182+
PPIndentWidth: -1
183+
QualifierAlignment: Leave
184+
RawStringFormats:
185+
- Language: Cpp
186+
Delimiters:
187+
- cc
188+
- CC
189+
- cpp
190+
- Cpp
191+
- CPP
192+
- 'c++'
193+
- 'C++'
194+
CanonicalDelimiter: ''
195+
BasedOnStyle: google
196+
- Language: TextProto
197+
Delimiters:
198+
- pb
199+
- PB
200+
- proto
201+
- PROTO
202+
EnclosingFunctions:
203+
- EqualsProto
204+
- EquivToProto
205+
- PARSE_PARTIAL_TEXT_PROTO
206+
- PARSE_TEST_PROTO
207+
- PARSE_TEXT_PROTO
208+
- ParseTextOrDie
209+
- ParseTextProtoOrDie
210+
- ParseTestProto
211+
- ParsePartialTestProto
212+
CanonicalDelimiter: ''
213+
BasedOnStyle: google
214+
ReferenceAlignment: Pointer
215+
ReflowComments: true
216+
RemoveBracesLLVM: false
217+
RemoveParentheses: Leave
218+
RemoveSemicolon: false
219+
RequiresClausePosition: OwnLine
220+
RequiresExpressionIndentation: OuterScope
221+
SeparateDefinitionBlocks: Always
222+
ShortNamespaceLines: 1
223+
SkipMacroDefinitionBody: false
224+
SortIncludes: CaseSensitive
225+
SortJavaStaticImport: Before
226+
SortUsingDeclarations: LexicographicNumeric
227+
SpaceAfterCStyleCast: false
228+
SpaceAfterLogicalNot: false
229+
SpaceAfterTemplateKeyword: false
230+
SpaceAroundPointerQualifiers: Default
231+
SpaceBeforeAssignmentOperators: true
232+
SpaceBeforeCaseColon: false
233+
SpaceBeforeCpp11BracedList: true
234+
SpaceBeforeCtorInitializerColon: true
235+
SpaceBeforeInheritanceColon: true
236+
SpaceBeforeJsonColon: false
237+
SpaceBeforeParens: ControlStatementsExceptControlMacros
238+
SpaceBeforeParensOptions:
239+
AfterControlStatements: true
240+
AfterForeachMacros: false
241+
AfterFunctionDefinitionName: false
242+
AfterFunctionDeclarationName: false
243+
AfterIfMacros: false
244+
AfterOverloadedOperator: false
245+
AfterPlacementOperator: true
246+
AfterRequiresInClause: false
247+
AfterRequiresInExpression: false
248+
BeforeNonEmptyParentheses: false
249+
SpaceBeforeRangeBasedForLoopColon: true
250+
SpaceBeforeSquareBrackets: false
251+
SpaceInEmptyBlock: false
252+
SpacesBeforeTrailingComments: 1
253+
SpacesInAngles: Never
254+
SpacesInContainerLiterals: false
255+
SpacesInLineCommentPrefix:
256+
Minimum: 1
257+
Maximum: -1
258+
SpacesInParens: Never
259+
SpacesInParensOptions:
260+
InCStyleCasts: false
261+
InConditionalStatements: false
262+
InEmptyParentheses: false
263+
Other: false
264+
SpacesInSquareBrackets: false
265+
Standard: Auto
266+
StatementAttributeLikeMacros:
267+
- Q_EMIT
268+
StatementMacros:
269+
- Q_UNUSED
270+
- QT_REQUIRE_VERSION
12271
TabWidth: 4
272+
UseTab: Never
273+
VerilogBreakBetweenInstancePorts: true
274+
WhitespaceSensitiveMacros:
275+
- STRINGIZE
276+
- PP_STRINGIZE
277+
- BOOST_PP_STRINGIZE
278+
...

.github/workflows/c++11.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: C++11
2+
3+
on:
4+
push:
5+
pull_request:
6+
release:
7+
# tags:
8+
# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
9+
10+
jobs:
11+
standard-check:
12+
name: C++11
13+
runs-on: ubuntu-latest
14+
15+
container:
16+
image: rootproject/root:6.22.08-ubuntu20.04
17+
18+
steps:
19+
- name: Install common dependencies
20+
run: |
21+
apt update
22+
apt install git -y
23+
cmake --version
24+
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- name: Checkout repository
27+
uses: actions/checkout@v1
28+
with:
29+
submodules: recursive
30+
31+
- name: Configure
32+
env:
33+
CC: ${{ steps.setup_cc.outputs.cc }}
34+
CXX: ${{ steps.setup_cc.outputs.cxx }}
35+
shell: bash
36+
run: |
37+
. /etc/profile
38+
root-config --version
39+
root-config --cflags
40+
root-config --features
41+
mkdir build
42+
cd build
43+
cmake .. \
44+
-DHelloFitty_DEVELOPER_MODE=ON \
45+
-DBUILD_TESTING=ON \
46+
-DCMAKE_INSTALL_PREFIX:PATH=instdir
47+
48+
- name: Build
49+
shell: bash
50+
run: |
51+
cd build
52+
make -j$(nproc)
53+
54+
- name: Test
55+
shell: bash
56+
run: |
57+
cd build
58+
make test

0 commit comments

Comments
 (0)