Skip to content

Commit

Permalink
First Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Jul 31, 2024
0 parents commit bef1d90
Show file tree
Hide file tree
Showing 22 changed files with 1,571 additions and 0 deletions.
146 changes: 146 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
---
# We'll use defaults from the LLVM style, but with 4 columns indentation.
BasedOnStyle: LLVM
IndentWidth: 4
---
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
ColumnLimit: 120

AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: false
AlignTrailingComments: true
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: InlineOnly
# AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: true

BinPackArguments: true
BinPackParameters: true
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: AfterColon

ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 8

IndentCaseLabels: false
SortIncludes: false
#IndentWrappedFunctionNames: true
#SpaceAfterTemplateKeyword: true
#SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpacesInAngles : true

---
Language: JavaScript
# Use 140 columns for JS.
ColumnLimit: 140
...


#####################
# ---
# Language: Cpp
# AccessModifierOffset: -1
# AlignAfterOpenBracket: Align
# AlignConsecutiveAssignments: false
# AlignConsecutiveDeclarations: false
# AlignEscapedNewlinesLeft: true
# AlignOperands: true
# AlignTrailingComments: true
# AllowAllParametersOfDeclarationOnNextLine: false
# AllowShortBlocksOnASingleLine: false
# AllowShortCaseLabelsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: Inline
# AllowShortIfStatementsOnASingleLine: false
# AllowShortLoopsOnASingleLine: false
# AlwaysBreakAfterDefinitionReturnType: None
# AlwaysBreakAfterReturnType: None
# AlwaysBreakBeforeMultilineStrings: true
# AlwaysBreakTemplateDeclarations: true
# BinPackArguments: true
# BinPackParameters: false
# BraceWrapping:
# AfterClass: false
# AfterControlStatement: false
# AfterEnum: false
# AfterFunction: false
# AfterNamespace: false
# AfterObjCDeclaration: false
# AfterStruct: false
# AfterUnion: false
# BeforeCatch: false
# BeforeElse: false
# IndentBraces: false
# BreakBeforeBinaryOperators: None
# BreakBeforeBraces: Attach
# BreakBeforeInheritanceComma: false
# BreakBeforeTernaryOperators: true
# BreakAfterJavaFieldAnnotations: false
# BreakConstructorInitializersBeforeComma: false
# BreakStringLiterals: true
# ColumnLimit: 80
# CommentPragmas: '^ IWYU pragma:'
# ConstructorInitializerAllOnOneLineOrOnePerLine: true
# ConstructorInitializerIndentWidth: 4
# ContinuationIndentWidth: 4
# Cpp11BracedListStyle: true
# DerivePointerAlignment: false
# DisableFormat: false
# ExperimentalAutoDetectBinPacking: false
# FixNamespaceComments: true
# ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
# IncludeCategories:
# - Regex: '^<.*\.h>'
# Priority: 1
# - Regex: '^<.*'
# Priority: 2
# - Regex: '.*'
# Priority: 3
# IncludeIsMainRegex: '([-_](test|unittest))?$'
# IndentCaseLabels: true
# IndentWidth: 2
# IndentWrappedFunctionNames: false
# JavaScriptQuotes: Leave
# JavaScriptWrapImports: true
# KeepEmptyLinesAtTheStartOfBlocks: false
# MacroBlockBegin: ''
# MacroBlockEnd: ''
# MaxEmptyLinesToKeep: 1
# NamespaceIndentation: None
# ObjCBlockIndentWidth: 2
# ObjCSpaceAfterProperty: true
# ObjCSpaceBeforeProtocolList: false
# PenaltyBreakBeforeFirstCallParameter: 1
# PenaltyBreakComment: 300
# PenaltyBreakFirstLessLess: 120
# PenaltyBreakString: 1000
# PenaltyExcessCharacter: 1000000
# PenaltyReturnTypeOnItsOwnLine: 200
# PointerAlignment: Right
# ReflowComments: true
# SortIncludes: false
# SpaceAfterCStyleCast: false
# SpaceAfterTemplateKeyword: true
# SpaceBeforeAssignmentOperators: true
# SpaceBeforeParens: ControlStatements
# SpaceInEmptyParentheses: false
# SpacesBeforeTrailingComments: 2
# SpacesInAngles: false
# SpacesInContainerLiterals: true
# SpacesInCStyleCastParentheses: false
# SpacesInParentheses: false
# SpacesInSquareBrackets: false
# Standard: Auto
# TabWidth: 8
# UseTab: Never
# ...
93 changes: 93 additions & 0 deletions .github/workflows/build_commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Build Commit

on:
workflow_call:
inputs:
platform:
required: true
type: string
build-type:
required: true
type: string
malloc-impl:
required: true
type: string
prerelease:
required: true
type: string
tooling:
required: true
type: string

jobs:
Sisl11Deps:
uses: eBay/sisl/.github/workflows/build_dependencies.yml@master
with:
branch: master
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
prerelease: ${{ inputs.prerelease }}
tooling: None
if: ${{ github.event_name != 'pull_request' }}

NuraftMesgDeps:
needs: Sisl11Deps
uses: eBay/nuraft_mesg/.github/workflows/build_dependencies.yml@main
with:
branch: main
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
prerelease: ${{ inputs.prerelease }}
tooling: None
if: ${{ github.event_name != 'pull_request' }}

IOMgrDeps:
needs: [Sisl11Deps]
uses: eBay/iomanager/.github/workflows/build_dependencies.yml@master
with:
branch: master
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
prerelease: ${{ inputs.prerelease }}
tooling: None
if: ${{ github.event_name != 'pull_request' }}

HomeStoreDeps:
needs: [IOMgrDeps, NuraftMesgDeps]
uses: eBay/homestore/.github/workflows/build_dependencies.yml@master
with:
branch: master
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
prerelease: ${{ inputs.prerelease }}
tooling: None
if: ${{ github.event_name != 'pull_request' }}

HomeBlocksDeps:
needs: [HomeStoreDeps]
uses: ./.github/workflows/build_dependencies.yml
with:
branch: ${{ github.ref }}
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
prerelease: ${{ inputs.prerelease }}
tooling: ${{ inputs.tooling }}
testing: 'True'
if: ${{ github.event_name != 'pull_request' }}

HomeBlocksBuild:
uses: ./.github/workflows/build_dependencies.yml
with:
branch: ${{ github.ref }}
platform: ${{ inputs.platform }}
build-type: ${{ inputs.build-type }}
malloc-impl: ${{ inputs.malloc-impl }}
prerelease: ${{ inputs.prerelease }}
tooling: ${{ inputs.tooling }}
testing: 'True'
if: ${{ github.event_name == 'pull_request' }}
Loading

0 comments on commit bef1d90

Please sign in to comment.