Skip to content

Commit

Permalink
Merge branch 'master' into windowPosCb
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo authored Sep 29, 2023
2 parents 83586d1 + 99b5995 commit 9cbdfe7
Show file tree
Hide file tree
Showing 414 changed files with 8,379 additions and 8,233 deletions.
217 changes: 217 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
---
Language: Cpp
# BasedOnStyle: WebKit
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: true
AlignConsecutiveBitFields:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: false
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: false
PadOperators: false
AlignEscapedNewlines: Right
AlignOperands: DontAlign
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
AttributeMacros:
- __capability
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterCaseLabel: false
AfterClass: false
AfterControlStatement: Never
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: All
BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 0
CommentPragmas: '^ IWYU pragma:'
QualifierAlignment: Leave
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: false
DeriveLineEnding: true
DerivePointerAlignment: false
DisableFormat: false
EmptyLineAfterAccessModifier: Never
EmptyLineBeforeAccessModifier: LogicalBlock
ExperimentalAutoDetectBinPacking: false
PackConstructorInitializers: BinPack
BasedOnStyle: ''
ConstructorInitializerAllOnOneLineOrOnePerLine: false
AllowAllConstructorInitializersOnNextLine: true
FixNamespaceComments: false
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IfMacros:
- KJ_IF_MAYBE
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
SortPriority: 0
CaseSensitive: false
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
SortPriority: 0
CaseSensitive: false
- Regex: '.*'
Priority: 1
SortPriority: 0
CaseSensitive: false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseLabels: false
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: BeforeHash
IndentExternBlock: AfterExternBlock
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertBraces: false
InsertTrailingCommas: None
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 4
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: true
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakOpenParenthesis: 0
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PenaltyIndentedWhitespace: 0
PointerAlignment: Middle
PPIndentWidth: -1
ReferenceAlignment: Pointer
ReflowComments: false
RemoveBracesLLVM: false
RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 1
SortIncludes: CaseSensitive
SortJavaStaticImport: Before
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCaseColon: false
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeParensOptions:
AfterControlStatements: true
AfterForeachMacros: true
AfterFunctionDefinitionName: false
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
AfterRequiresInClause: false
AfterRequiresInExpression: false
BeforeNonEmptyParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInConditionalStatement: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
BitFieldColonSpacing: Both
Standard: Latest
StatementAttributeLikeMacros:
- Q_EMIT
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 4
UseCRLF: false
UseTab: Always
WhitespaceSensitiveMacros:
- STRINGIZE
- STRINGIFY
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...

37 changes: 37 additions & 0 deletions .github/workflows/build-linux-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-linux-arm

# make the action not run on the local repo if the branch is also in a pull request to OF/OF
on:
push:
if: github.event_name == 'push' && github.event.pull_request == null
paths-ignore:
- '**/*.md'
- 'examples/**'
pull_request:
if: github.event_name == 'pull_request' && github.repository == 'openframeworks/openFrameworks'
paths-ignore:
- '**/*.md'
- 'examples/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build-linux-platforms:
runs-on: ubuntu-latest
strategy:
matrix:
cfg:
- {target: linuxarmv6l, libs: armv6l}
- {target: linuxaarch64, libs: aarch64}
env:
TARGET: ${{matrix.cfg.target}}
steps:
- uses: actions/checkout@v3
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
- name: Install dependencies
run: ./scripts/ci/$TARGET/install.sh;
- name: Build
run: ./scripts/ci/$TARGET/build.sh;
4 changes: 2 additions & 2 deletions .github/workflows/build-linux-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: "0 6 * * *"
jobs:
build-linux-platforms:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
if: github.repository == 'openframeworks/openFrameworks' && github.ref == 'refs/heads/master'
strategy:
matrix:
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Install libunwind
run: sudo apt-get install libunwind-dev
- name: Install dependencies
run: sudo ./scripts/linux/ubuntu/install_dependencies.sh -y;
run: ./scripts/ci/$TARGET/install.sh;
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
- name: Create Package
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-linux64-and-arm
name: build-linux64

# make the action not run on the local repo if the branch is also in a pull request to OF/OF
on:
Expand All @@ -25,8 +25,6 @@ jobs:
matrix:
cfg:
- {target: linux64, libs: 64gcc6}
- {target: linuxarmv6l, libs: armv6l}
# - {target: linuxarmv7l, libs: armv7l}
env:
TARGET: ${{matrix.cfg.target}}
steps:
Expand All @@ -39,12 +37,6 @@ jobs:
fi
- name: Install dependencies
run: ./scripts/ci/$TARGET/install.sh;
# - name: Install gcc4
# run: if [ ${{matrix.cfg.target}} = "64gcc4" ]; then
# sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
# sudo apt-get update -q;
# sudo apt-get install gcc-4.9 g++-4.9;
# fi
- name: Build
run: if [ "$TARGET" = "linux64" ]; then
scripts/ci/$TARGET/build.sh;
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/manual-nightly.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: manual-nightly

on: workflow_dispatch
on:
workflow_dispatch:
inputs:
release:
description: 'release'
required: true
default: 'nightly'
jobs:
manual-nightly:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
cfg:
Expand All @@ -15,18 +21,18 @@ jobs:
- name: Install libunwind
run: sudo apt-get install libunwind-dev
- name: Install dependencies
run: sudo ./scripts/linux/ubuntu/install_dependencies.sh -y;
run: ./scripts/ci/$TARGET/install.sh;
- name: Download libs
run: ./scripts/linux/download_libs.sh -a ${{matrix.cfg.libs}};
- name: Create Package
run: scripts/ci/package_builds.sh;
run: scripts/ci/package_builds.sh ${{ github.event.inputs.release }};
id: createpackage
- name: Update Release
uses: IsaacShelton/update-existing-release@v1.3.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: nightly
release: nightly
tag: ${{ github.event.inputs.release }}
release: ${{ github.event.inputs.release }}
prerelease: false
replace: true
files: ${{ steps.createpackage.outputs.FILES_OUT }}
Loading

0 comments on commit 9cbdfe7

Please sign in to comment.