Skip to content

Commit

Permalink
CICD: Fix scripts release
Browse files Browse the repository at this point in the history
PATCH
  • Loading branch information
Saverio976 committed Oct 24, 2023
1 parent e32cbed commit d97a4c3
Show file tree
Hide file tree
Showing 7 changed files with 128 additions and 16 deletions.
100 changes: 100 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
Language: Cpp
ColumnLimit: '108'
ReflowComments: true
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
EmptyLineBeforeAccessModifier: Always
IndentWrappedFunctionNames: 'false'
AccessModifierOffset: 0
IndentAccessModifiers: true
BinPackParameters: false
BinPackArguments: false
InsertTrailingCommas: Wrapped
PackConstructorInitializers: CurrentLine
AlwaysBreakTemplateDeclarations: Yes
DerivePointerAlignment: true
LambdaBodyIndentation: Signature
AlignOperands: false
BreakBeforeBraces: Custom

BraceWrapping:
AfterCaseLabel: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true

AlwaysBreakAfterReturnType: None

TabWidth: '4'
UseTab: Never
IndentPPDirectives: BeforeHash
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: false
AlignArrayOfStructures: 'Left'
Cpp11BracedListStyle: true
PointerAlignment: Right
ReferenceAlignment: Right
SpacesInCStyleCastParentheses: false
SpaceAfterCStyleCast: true
SpaceAfterLogicalNot: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesInAngles: false
SpacesInParentheses: 'false'
SpacesInSquareBrackets: 'false'
SpacesInContainerLiterals: 'false'
SpaceAfterTemplateKeyword: 'true'
IndentCaseLabels: 'true'
NamespaceIndentation: All
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: 'false'
AllowShortBlocksOnASingleLine: 'true'
AllowShortCaseLabelsOnASingleLine: 'true'
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
AlignConsecutiveMacros: true
AlignEscapedNewlines: Left
AlignTrailingComments: true
BreakStringLiterals: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeTernaryOperators: true
SortIncludes: true
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '<.+>' # System/Standard libs
Priority: 1
- Regex: '"raylib.h"' # Criterion headers
Priority: 2
- Regex: '"raylib-cpp.hpp"' # Criterion headers
Priority: 2
- Regex: '".+"' # Any "my_header.h"
Priority: 3

# Sort 'using' declarations
SortUsingDeclarations: true

BasedOnStyle: LLVM
AlwaysBreakBeforeMultilineStrings: 'true'
ContinuationIndentWidth: '4'
SpaceInEmptyBlock: true
IndentWidth: '4'
PenaltyBreakAssignment: '0'
SpaceBeforeCpp11BracedList: 'true'
SpaceBeforeRangeBasedForLoopColon: 'true'

# To totally disable format
DisableFormat: 'false'
11 changes: 0 additions & 11 deletions .github/workflows/test-ecs.yml

This file was deleted.

2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ target_include_directories(
$<INSTALL_INTERFACE:include>
)

add_subdirectory(deps)

include(CMakePackageConfigHelpers)

install(
Expand Down
Empty file added README.md
Empty file.
1 change: 1 addition & 0 deletions deps/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmake_minimum_required(VERSION 3.20)
18 changes: 18 additions & 0 deletions deps/date/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
cmake_minimum_required(VERSION 3.20)

include(FetchContent)

FetchContent_Declare(
date
CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_CONFIGURATION_TYPES=\"Release;Release\"" "-DCONFIG=Release"
URL "https://github.com/X-R-G-B/R-Bus/releases/latest/download/date.tar"
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
)

FetchContent_MakeAvailable(date)

target_include_directories(
${PROJECT_NAME}
PRIVATE
${date_SOURCE_DIR}/include
)
12 changes: 7 additions & 5 deletions scripts/create-tar.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
NOW=$(pwd)
mkdir b-luga

cd ..
mv ./CMakeLists.txt ./b-luga
mv ./LICENSE ./b-luga
mv ./README.md ./b-luga
mv ./include ./b-luga
mv ./deps ./b-luga

tar -cvf b-luga.tar $NOW

cd "$NOW"
tar -cvf b-luga.tar b-luga

0 comments on commit d97a4c3

Please sign in to comment.