Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev -> Main #25

Merged
merged 273 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
273 commits
Select commit Hold shift + click to select a range
de51fb9
CICD: Add some editorconfig
Saverio976 Sep 23, 2023
a8c1a94
CICD: Remove unknow field to ubuntu
Saverio976 Sep 23, 2023
2402bff
Merge pull request #14 from X-R-G-B/feature/RB-16
TTENSHII Sep 23, 2023
cedafe5
ECS: Add addEntity + removeEntity methods at Registry
guillaumeAbel Sep 23, 2023
ff46df0
Merge branch 'dev' into feature/RB-35-registry-create-entity
guillaumeAbel Sep 23, 2023
7ec80ce
CICD: Add compil script
Saverio976 Sep 23, 2023
f22bf41
ECS: Format + Merge
guillaumeAbel Sep 23, 2023
b95b789
ECS: Fix iterator call
guillaumeAbel Sep 23, 2023
594d619
CICD: Fix ubuntu windows macos
Saverio976 Sep 23, 2023
86effce
CICD: Fix ubuntu missing dep
Saverio976 Sep 23, 2023
9fd5782
Merge pull request #15 from X-R-G-B/feature/RB-35-registry-create-entity
TTENSHII Sep 23, 2023
59bb4f7
CICD: Add --fix for auto fix
Saverio976 Sep 23, 2023
cffc31c
CICD: Fix ubuntu compil
Saverio976 Sep 23, 2023
e1d76d9
CICD: Fix ubuntu missing deps
Saverio976 Sep 23, 2023
58c5628
ECS: Fix SparseArray operator[]
guillaumeAbel Sep 23, 2023
0a278a8
Merge remote-tracking branch 'origin/dev' into feature/RB-17
Saverio976 Sep 23, 2023
9315126
Merge pull request #16 from X-R-G-B/fix/RB-39-fix-sparse-array-operator
Saverio976 Sep 23, 2023
a923647
Merge remote-tracking branch 'origin/dev' into feature/RB-17
Saverio976 Sep 23, 2023
c389340
ECS: Add collisionRect and Window borders
TTENSHII Sep 23, 2023
43c492d
CICD: Add clang tidy to check compil + warnings
Saverio976 Sep 23, 2023
ec04f70
CICD: Remove option for ubuntu compatibility
Saverio976 Sep 23, 2023
e31d479
CICD: Add no checks for something
Saverio976 Sep 23, 2023
68013de
CICD: Fix last warnings of clang tidy
Saverio976 Sep 23, 2023
6d8383a
CICD: Fix macos fail
Saverio976 Sep 23, 2023
75593e1
CICD: Fix missing virtual and overide
Saverio976 Sep 23, 2023
b5e5e1f
Merge dev into RB-36-Collision-System
TTENSHII Sep 23, 2023
4651155
CICD: Fix windows compilation_commands
Saverio976 Sep 23, 2023
05f351d
ECS: Add better formatting
TTENSHII Sep 23, 2023
a1d70f5
CICD: Format code
Saverio976 Sep 23, 2023
3ddb3e3
ECS: Fix formatting
TTENSHII Sep 23, 2023
b3a79d3
ECS: Remove two same includes
TTENSHII Sep 23, 2023
a34b05a
CICD: Fix windows dont install right cmake
Saverio976 Sep 23, 2023
e3e379d
CICD: Integrate clang tidy with cmake
Saverio976 Sep 23, 2023
9feb8a1
CICD: Fix build compile command
Saverio976 Sep 23, 2023
2743af4
CICD: Fix format
Saverio976 Sep 23, 2023
905cb58
CICD: Fix format
Saverio976 Sep 23, 2023
54c8168
CICD: Fix format
Saverio976 Sep 23, 2023
b63a822
CICD: Fix formatting
TTENSHII Sep 23, 2023
e8a4520
CLIENT-GAME: Fix system + Fix conflicts
guillaumeAbel Sep 23, 2023
a232560
CICD: Sugar syntax
Saverio976 Sep 23, 2023
2852d8d
CICD: Fix unused
Saverio976 Sep 23, 2023
e2ece8b
Merge pull request #11 from X-R-G-B/feature/RB-30-sprite-system
TTENSHII Sep 23, 2023
3399c4f
CICD: Change inline return type
Saverio976 Sep 23, 2023
1959ea9
CICD: Add break for template
Saverio976 Sep 23, 2023
878954a
Merge remote-tracking branch 'origin/dev' into feature/RB-17
Saverio976 Sep 23, 2023
f2d2371
CICD: Fix compil
Saverio976 Sep 23, 2023
7d47a04
Merge branch 'dev' into feature/RB-36
TTENSHII Sep 23, 2023
f6cfec6
CICD: Fix formatting
TTENSHII Sep 23, 2023
23b0cb6
CICD: Fix build macos
Saverio976 Sep 24, 2023
b36a325
CICD: Add more format
Saverio976 Sep 24, 2023
b925e2c
Merge pull request #18 from X-R-G-B/feature/RB-17
Saverio976 Sep 24, 2023
8e383a0
CICD: Add script install deps + script bundle
Saverio976 Sep 24, 2023
307f433
ECS: Set sprites display in percent
TTENSHII Sep 24, 2023
358ae96
ECS: Fix formatting
TTENSHII Sep 24, 2023
853bdd3
CICD: Change branch target
Saverio976 Sep 24, 2023
bde3057
ECS: Fix variable in registry
TTENSHII Sep 24, 2023
8c46c69
Merge branch 'dev' into RB-36-Collision-System
TTENSHII Sep 24, 2023
d456205
CICD: Fix release tag
Saverio976 Sep 24, 2023
b2b0a96
CICD: Fix package creator
Saverio976 Sep 24, 2023
58ec983
CLIENT-GAME: Add sounds assets
TTENSHII Sep 24, 2023
d6ee917
CICD: Show error message for macos
Saverio976 Sep 24, 2023
84b2745
ECS: Fix compil
TTENSHII Sep 24, 2023
bedb007
CICD: Remove install targets
Saverio976 Sep 24, 2023
ce311b8
CLIENT-GAME: Add sound effects support
TTENSHII Sep 24, 2023
0111f01
CICD: Add build before pack
Saverio976 Sep 24, 2023
f4cc054
CLIENT-GAME: Fix clangTidy
TTENSHII Sep 24, 2023
d741447
CICD: Fix Cmake var
Saverio976 Sep 24, 2023
064be0f
CICD: Add option to build shared lib
Saverio976 Sep 24, 2023
5b9f840
CICD: Set option shared lib
Saverio976 Sep 24, 2023
8739f37
CICD: Use vcpkg instead (i hope now it works on windows [=still sh*t]
Saverio976 Sep 24, 2023
f21c1e9
CICD: Fix windows install deps
Saverio976 Sep 24, 2023
3aaef5d
CICD: Add boost-coroutine2 for async
Saverio976 Sep 24, 2023
34289ed
CICD: Remove unused tar package
Saverio976 Sep 24, 2023
40652a1
CICD: Fix bad install
Saverio976 Sep 24, 2023
d04bf46
CLIENT-GAME: Add music support
TTENSHII Sep 24, 2023
13ba919
CICD: Fix windows install
Saverio976 Sep 24, 2023
8997143
CICD: Fix windows install
Saverio976 Sep 24, 2023
c0dcc91
CLIENT-GAME: Fix music
TTENSHII Sep 24, 2023
639f6d0
CLIENT-GAME: Fix code include / conditions
TTENSHII Sep 24, 2023
99f1ebf
CICD: Cat file on windows failed cpack
Saverio976 Sep 24, 2023
ef7a9bc
CICD: Fix cmake bad ico
Saverio976 Sep 24, 2023
27e8762
CICD: Fix imaeg for windows
Saverio976 Sep 24, 2023
1f30e92
Merge pull request #17 from X-R-G-B/feature/RB-36-Collision-System
Saverio976 Sep 24, 2023
6d79d5d
CICD: Fix release bad version numeric
Saverio976 Sep 24, 2023
9790aa6
CICD: Fix windows cpack
Saverio976 Sep 24, 2023
97df4e4
ECS: Add current progress implement SceneManager
guillaumeAbel Sep 25, 2023
bc9ada8
CICD: Add issue to redirect to Q/A discussion
KitetsuK Sep 25, 2023
1e686cf
Merge pull request #20 from X-R-G-B/feature/RB-44-q-a-issue
Saverio976 Sep 25, 2023
ed875c2
CICD: Add install targets
Saverio976 Sep 25, 2023
38ca848
Merge branch 'dev' into feature/RB-38-audio-system
TTENSHII Sep 25, 2023
f43a6fd
CICD: Fix windows install dir
Saverio976 Sep 25, 2023
2d9d03d
CLIENT-GAME: Fix EOF
TTENSHII Sep 25, 2023
7191263
CICD: Try to fix install dir
Saverio976 Sep 25, 2023
ebda2de
Merge remote-tracking branch 'origin/dev' into feature/RB-15
Saverio976 Sep 25, 2023
e971f19
Merge branch 'feature/RB-15' into feature/RB-38-audio-system
TTENSHII Sep 25, 2023
35626c0
CICD: No shared build
Saverio976 Sep 25, 2023
397eb3d
Add current progress
guillaumeAbel Sep 25, 2023
c83f4d6
Merge branch 'feature/RB-38-audio-system' of github.com:X-R-G-B/R-Bus…
TTENSHII Sep 25, 2023
ca17b18
CICD: Use release mode build
Saverio976 Sep 25, 2023
3f10288
CICD: Add install raylib
Saverio976 Sep 25, 2023
0eb63ca
Merge feature/RB-15 into feature/RB-38
TTENSHII Sep 25, 2023
c5adf1c
CICD: fix not installed raylib
Saverio976 Sep 25, 2023
bad0b0f
CICD: add lib
Saverio976 Sep 25, 2023
6ef2686
CICD: add install targets
Saverio976 Sep 25, 2023
746d7d1
CICD: Fix release type
Saverio976 Sep 25, 2023
3a2dfce
CICD: Add release mode
Saverio976 Sep 25, 2023
e6b3004
CICD: Try something on windows msvc
Saverio976 Sep 25, 2023
5b2edb9
ECS: Add current progress linkage issue
guillaumeAbel Sep 25, 2023
dede64f
CLIENT-GAME: Add text system with responsive
KitetsuK Sep 25, 2023
19b8da8
CICD: Remove if
Saverio976 Sep 25, 2023
36d65e0
CICD: Call compil before
Saverio976 Sep 25, 2023
fa05b46
CICD: Add work in progress
Saverio976 Sep 25, 2023
6e33616
CICD: Remove vcpkg and all by hand
Saverio976 Sep 25, 2023
4eec617
CICD: Fix boost create
Saverio976 Sep 25, 2023
a8daa3c
CICD: Fix boost tar
Saverio976 Sep 25, 2023
b1b9d0a
CICD: Fix boost deps cmake
Saverio976 Sep 25, 2023
8f5b812
CICD: include all boost
Saverio976 Sep 25, 2023
13e9412
CICD: Fix boost
Saverio976 Sep 25, 2023
4bcb74e
CICD: Remove unused packaged boost
Saverio976 Sep 25, 2023
15e83fd
CICD: Fix linux release tar gz
Saverio976 Sep 25, 2023
29be592
CICD: Fix windows bundle ?
Saverio976 Sep 25, 2023
ec1cb34
CICD: Fix windows 2 ?
Saverio976 Sep 25, 2023
b7903ee
CICD: Fix bad cmake
Saverio976 Sep 25, 2023
6a7488d
CICD: Fix windows 3 ?
Saverio976 Sep 25, 2023
025ec3c
Windows fix
Saverio976 Sep 25, 2023
166fac8
CICD: Add check for file
Saverio976 Sep 26, 2023
0ffbe09
ECS: Add current progress
guillaumeAbel Sep 26, 2023
9e58b6a
Merge branch 'feature/RB-15' into refactor/RB-43-refactor-system-mana…
guillaumeAbel Sep 26, 2023
9a16999
CICD: Add auto format for pr + change branch name
Saverio976 Sep 26, 2023
10f18f5
CICD: Fix auto format condition
Saverio976 Sep 26, 2023
8a2b352
CICD: Fix auto format on pull requets
Saverio976 Sep 26, 2023
f97cd81
FORMAT-AUTO: automatic format on pull request #22
github-actions[bot] Sep 26, 2023
2c1058e
Merge pull request #22 from X-R-G-B/feature/RB-15
TTENSHII Sep 26, 2023
1656712
Merge remote-tracking branch 'origin/dev' into feature/RB-37-text-system
Saverio976 Sep 26, 2023
afc7273
FORMAT-AUTO: automatic format on pull request #21
github-actions[bot] Sep 26, 2023
b033be4
Add current progress sprite killing window
guillaumeAbel Sep 26, 2023
238ca70
CLIENT-GAME: Add raylib functions
TTENSHII Sep 26, 2023
8e81025
CLIENT-GAME: Add commit suggestion
KitetsuK Sep 26, 2023
4ea1082
CLIENT-GAME: Add audio functions
TTENSHII Sep 26, 2023
f2dcc40
Merge pull request #21 from X-R-G-B/feature/RB-37-text-system
TTENSHII Sep 26, 2023
c6a4d7c
ECS: Add right CMake
guillaumeAbel Sep 26, 2023
a3af68a
ECS: Add current progress
guillaumeAbel Sep 26, 2023
5ca7f23
ECS: Add functional new SystemManagers
guillaumeAbel Sep 26, 2023
4fcc947
ECS: Fix main
guillaumeAbel Sep 26, 2023
337408e
ECS: Merge dev
guillaumeAbel Sep 26, 2023
5af5143
FORMAT-AUTO: automatic format on pull request #23
github-actions[bot] Sep 26, 2023
ad986e7
CLIENT-GAME: Fix compil problem
TTENSHII Sep 26, 2023
aa23fd0
ECS: Change lists to vectors + Format
guillaumeAbel Sep 26, 2023
c3c39ab
FORMAT-AUTO: automatic format on pull request #23
github-actions[bot] Sep 26, 2023
010da28
Update src/ECS/Systems/Managers/SystemManagersDirector.hpp
guillaumeAbel Sep 26, 2023
a99cc99
Merge branch 'dev' into feature/RB-38-audio-system
TTENSHII Sep 26, 2023
e9928eb
Update src/ECS/Systems/Managers/SystemManagersDirector.cpp
guillaumeAbel Sep 26, 2023
6119036
FORMAT-AUTO: automatic format on pull request #19
github-actions[bot] Sep 26, 2023
75feba0
Merge pull request #19 from X-R-G-B/feature/RB-38-audio-system
guillaumeAbel Sep 26, 2023
72a0d52
DOCUMENTATION: Init mdbook doc
Saverio976 Sep 26, 2023
16d0b2d
DOCUMENTATION: Modify mdbook config
Saverio976 Sep 26, 2023
5b3d622
DOCUMENTATION: Fix mdbook config src
Saverio976 Sep 26, 2023
1dda799
DOCUMENTATION: Modify path install of md
Saverio976 Sep 26, 2023
3442d2c
ECS: Merge Audio
guillaumeAbel Sep 26, 2023
8d4a6cc
FORMAT-AUTO: automatic format on pull request #23
github-actions[bot] Sep 26, 2023
60f3363
ECS: Call music
guillaumeAbel Sep 26, 2023
f9a52b7
Merge branch 'refactor/RB-43-refactor-system-managers-in-one' of http…
guillaumeAbel Sep 26, 2023
6b7deb4
ECS: Fix magic values
guillaumeAbel Sep 26, 2023
2b6ceb4
Merge pull request #23 from X-R-G-B/refactor/RB-43-refactor-system-ma…
TTENSHII Sep 26, 2023
fb6dcaa
DOCUMENTATION: Fix build of mdbook
Saverio976 Sep 26, 2023
2c534f4
DOCUMENTATION: Update deps github action
Saverio976 Sep 26, 2023
ea1af99
DOCUMENTATION: Change hierarchy file
Saverio976 Sep 26, 2023
674ad1a
CICD: Add check modified file before executing long time job
Saverio976 Sep 26, 2023
f769da9
DOCUMENTATION: Add template for install failed
Saverio976 Sep 26, 2023
a74f298
CICD: Update and rename install-failed.md to install-failed.yml
Saverio976 Sep 26, 2023
de03dd7
CICD: Update install-failed.yml
Saverio976 Sep 26, 2023
efee188
CICD: Update install-failed.yml
Saverio976 Sep 26, 2023
e4cecda
DOCUMENTATION: Add install instruction
Saverio976 Sep 26, 2023
eab67c2
DOCUMENTATION: Fix link internal
Saverio976 Sep 26, 2023
1ee084c
CICD: Run make book if dev but dont upload only main upload
Saverio976 Sep 26, 2023
13547a9
ECS: Add current progress compilation LKNG error
guillaumeAbel Sep 26, 2023
65b196b
Merge pull request #24 from X-R-G-B/feature/RB-49
Saverio976 Sep 27, 2023
a865f80
DOCUMENTATION/CICD: Add docs for the CICD and fix some workflow
Saverio976 Sep 27, 2023
8447b7a
CICD: Fix compil issue
Saverio976 Sep 27, 2023
0f1bc1c
CICD: Change the branch trigger
Saverio976 Sep 27, 2023
bf2ea14
CICD: Fix check modified file
Saverio976 Sep 27, 2023
dc5319a
DOCUMENTATION: Fix path md
Saverio976 Sep 27, 2023
e47a364
Merge pull request #26 from X-R-G-B/feature/RB-52
romainpanno Sep 27, 2023
12738ff
CLIENT-GAME: Add functionnal audio
TTENSHII Sep 27, 2023
8abbd63
ECS: Add current progress bugging registry
guillaumeAbel Sep 27, 2023
a2a44f5
CLIENT-GAME: Fix compilation
TTENSHII Sep 27, 2023
dd48d0c
CICD: Fix cmake env var
Saverio976 Sep 27, 2023
05ae773
DOCUMENTATION : Add new documentation to contribute to the project
KitetsuK Sep 27, 2023
a1d68d9
ECS: Add current progress
guillaumeAbel Sep 27, 2023
157b572
DOCUMENTATION : Add commit suggestion
KitetsuK Sep 27, 2023
4e8124a
DOCUMENTATION : Fix some errors in the doc
KitetsuK Sep 27, 2023
ddf5bf8
DOCUMENTATION : Fix some errors in the doc
KitetsuK Sep 27, 2023
9c85ed1
DOCUMENTATION : Add missing quote
KitetsuK Sep 27, 2023
3d07724
CLIENT-GAME: replace Texture2d by Sprite
TTENSHII Sep 27, 2023
5557611
DOCUMENTATION : Add missing os supported
KitetsuK Sep 27, 2023
37d64da
Merge pull request #27 from X-R-G-B/doc/RB-50-contribution
Saverio976 Sep 27, 2023
73c2484
Merge 'dev' into feature/RB-42
TTENSHII Sep 27, 2023
abf6147
CLIENT-GAME: Fix compilation
TTENSHII Sep 27, 2023
8b27354
Merge branch 'dev' into feature/RB-42-Raylib-encapsulation
TTENSHII Sep 27, 2023
8893274
CLIENT-GAME: Fix compilation
TTENSHII Sep 27, 2023
5df5008
CLIENT-GAME: Fix audio encapsulation
TTENSHII Sep 27, 2023
99371f8
ECS: Add functional SceneManager
guillaumeAbel Sep 27, 2023
666f2fb
FORMAT-AUTO: automatic format on pull request #28
github-actions[bot] Sep 27, 2023
417a5de
ECS: Fix missing attribute reset in Registry::clear
guillaumeAbel Sep 27, 2023
bb1a972
Merge branch 'feature/RB-40-scene-manager-class' of https://github.co…
guillaumeAbel Sep 27, 2023
0d82b2a
ECS: Format
guillaumeAbel Sep 27, 2023
d24d676
FORMAT-AUTO: automatic format on pull request #28
github-actions[bot] Sep 27, 2023
126d3ff
Update src/Client/SceneManager.cpp
guillaumeAbel Sep 27, 2023
941a096
FORMAT-AUTO: automatic format on pull request #28
github-actions[bot] Sep 27, 2023
4ee1293
ECS: Add run method + throw handle and print
guillaumeAbel Sep 27, 2023
e6195c4
Merge branch 'feature/RB-40-scene-manager-class' of https://github.co…
guillaumeAbel Sep 27, 2023
c70862e
Merge pull request #28 from X-R-G-B/feature/RB-40-scene-manager-class
Saverio976 Sep 27, 2023
8c4c6ae
ECS: Add custom sparse array to stock the ids
KitetsuK Sep 27, 2023
f4e776d
CLIENT-GAME/ECS : Add final implementation of custom sparse array
KitetsuK Sep 27, 2023
2dc0562
FORMAT-AUTO: automatic format on pull request #29
github-actions[bot] Sep 27, 2023
b650a41
Merge pull request #29 from X-R-G-B/feature/RB-41-registry-additional…
guillaumeAbel Sep 27, 2023
b4ca35b
CLIENT-GAME: Add raylib encapsulation
TTENSHII Sep 27, 2023
4ce68d8
Merge dev into rb42
TTENSHII Sep 27, 2023
3392371
FORMAT-AUTO: automatic format on pull request #30
github-actions[bot] Sep 27, 2023
2a8459d
CLIENT-GAME: add sprite, music and test sound
TTENSHII Sep 28, 2023
e8ab87e
FORMAT-AUTO: automatic format on pull request #30
github-actions[bot] Sep 28, 2023
46ea1a8
CLIENT-GAME: Fix cmake version
TTENSHII Sep 28, 2023
82a8171
Merge branch 'feature/RB-42-Raylib-encapsulation' of github.com:X-R-G…
TTENSHII Sep 28, 2023
4b67ae2
CLIENT-GAME: Add epitech headers
TTENSHII Sep 28, 2023
21d99f1
CLIENT-GAME: Fix text responsive
TTENSHII Sep 28, 2023
7bfab12
CICD: Fix windows build
Saverio976 Sep 28, 2023
205977d
CLIENT-GAME: Fix merge request
TTENSHII Sep 28, 2023
00e6923
Merge branch 'feature/RB-42-Raylib-encapsulation' of github.com:X-R-G…
TTENSHII Sep 28, 2023
7ab17d7
FORMAT-AUTO: automatic format on pull request #30
github-actions[bot] Sep 28, 2023
7dafa4d
CLIENT-GAME: Fix merge request
TTENSHII Sep 28, 2023
2168181
Merge branch 'feature/RB-42-Raylib-encapsulation' of github.com:X-R-G…
TTENSHII Sep 28, 2023
aa9fcb3
FORMAT-AUTO: automatic format on pull request #30
github-actions[bot] Sep 28, 2023
f31715e
ECS: Fix, reable systems to auto delete + refactor systemManager + re…
guillaumeAbel Sep 28, 2023
db68659
FORMAT-AUTO: automatic format on pull request #31
github-actions[bot] Sep 28, 2023
6241840
CLIENT-GAME: Fix pr request
TTENSHII Sep 28, 2023
33f03eb
FORMAT-AUTO: automatic format on pull request #30
github-actions[bot] Sep 28, 2023
8f5f564
Merge pull request #30 from X-R-G-B/feature/RB-42-Raylib-encapsulation
Saverio976 Sep 28, 2023
cf9a8cd
ECS: Fix conflict
guillaumeAbel Sep 28, 2023
bc78ba8
FORMAT-AUTO: automatic format on pull request #31
github-actions[bot] Sep 28, 2023
daf2b9b
ECS: Fix method to const
guillaumeAbel Sep 28, 2023
db82cd3
Merge branch 'fix/RB-53-reable-systems-to-remove-themself' of https:/…
guillaumeAbel Sep 28, 2023
6e74e5a
Update src/Client/Systems/Events/EventsSystems.cpp
guillaumeAbel Sep 29, 2023
1d681d0
ECS: Fix remaining call to raylib outside encapsulation
guillaumeAbel Sep 29, 2023
d718a20
ECS: Fix Raylib call
guillaumeAbel Sep 29, 2023
40f2df8
Merge pull request #31 from X-R-G-B/fix/RB-53-reable-systems-to-remov…
Saverio976 Sep 29, 2023
b7ac899
DOCUMENTAION: fix typo missing @
Saverio976 Sep 29, 2023
0c1f89a
CICD: Fix source pack creation
Saverio976 Sep 29, 2023
443988a
CICD: Fix comments from romainpanno
Saverio976 Sep 29, 2023
057f3d4
CICD: Fix build release
Saverio976 Sep 30, 2023
f2cd9b3
CICD: Fix macos release and compil for windows
Saverio976 Sep 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: '80'
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'
5 changes: 5 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
Checks: '-*,clang-diagnostic-*,clang-analyzer-*,-*,clang-analyzer-*,concurrency-*,cppcoreguidelines-*,modernize-*,portability-*,readability-*,-readability-identifier-length,-modernize-use-trailing-return-type'
WarningsAsErrors: '-*,clang-diagnostic-*,clang-analyzer-*,-*,clang-analyzer-*,concurrency-*,cppcoreguidelines-*,modernize-*,portability-*,readability-*,-readability-identifier-length,-modernize-use-trailing-return-type'
HeaderFilterRegex: '(src/ECS/)|(src/Client/)|(src/Server/)'
AnalyzeTemporaryDtors: false
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
charset = utf-8
indent_style = space
indent_size = 4
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# All files are checked into the repo with LF
* text=auto

# These files are checked out using CRLF locally
*.bat eol=crlf
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
contact_links:
- name: Question/s
url: https://github.com/X-R-G-B/R-Bus/discussions/categories/q-a
about: If you have question/s to ask you can find your answer.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/install-failed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Install Failed"
description: "When you can't install or have error when installing"
title: "[FAIL INSTALL] - Title"
labels: [
"bug"
]
body:
- type: textarea
id: os
attributes:
label: "Operating System"
description: "What operating system do you use"
validations:
required: true
- type: textarea
id: error
attributes:
label: "Errors"
description: "Errors"
validations:
required: true
- type: textarea
id: step
attributes:
label: "Steps"
description: "Steps to reproduce"
validations:
required: true
79 changes: 79 additions & 0 deletions .github/workflows/compil.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Compil

on: [push, pull_request]

jobs:
compil-check-job-run:
runs-on: ubuntu-latest

outputs:
workflows: ${{ steps.filter.outputs.workflows }}
src: ${{ steps.filter.outputs.src }}
cmake: ${{ steps.filter.outputs.cmake }}
combined: ${{ steps.filter.outputs.workflows == 'true' || steps.filter.outputs.src == 'true' || steps.filter.outputs.cmake == 'true' }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check modified files need re run
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
workflows:
- '.github/workflows/**'
src:
- 'src/**'
cmake:
- 'CMakeLists.txt'

windows-compil:
runs-on: windows-latest
needs: [compil-check-job-run]
if: needs.compil-check-job-run.outputs.combined || github.event_name == 'pull_request'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install winget
uses: Cyberboss/install-winget@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: ./scripts/install-deps-windows.ps1

- name: Compil
run: ./scripts/compil.ps1 --dry-run

linux-compil:
runs-on: ubuntu-latest
needs: [compil-check-job-run]
if: needs.compil-check-job-run.outputs.combined || github.event_name == 'pull_request'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: sudo ./scripts/install-deps-linux.sh

- name: Compil
run: ./scripts/compil.sh --dry-run

macos-compil:
runs-on: macos-latest
needs: [compil-check-job-run]
if: needs.compil-check-job-run.outputs.combined || github.event_name == 'pull_request'

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: ./scripts/install-deps-macos.sh

- name: Compil
run: ./scripts/compil.sh --dry-run
55 changes: 55 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Documentation
on: [push]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pages: write # To push to a GitHub Pages site
id-token: write # To update the deployment status

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check modified files need re run
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
docs:
- 'docs/**'
docs2:
- 'book.toml'

- name: Install latest mdbook
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.docs2 == 'true' || github.ref == 'refs/heads/main'
run: |
tag=$(curl 'https://api.github.com/repos/rust-lang/mdbook/releases/latest' | jq -r '.tag_name')
url="https://github.com/rust-lang/mdbook/releases/download/${tag}/mdbook-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir mdbook
curl -sSL $url | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH

- name: Build Book
if: steps.filter.outputs.docs == 'true' || steps.filter.outputs.docs2 == 'true' || github.ref == 'refs/heads/main'
run: mdbook build

- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3

- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: 'book'

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2
74 changes: 74 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Format

on: [push, pull_request]

jobs:
# windows-format:
# runs-on: windows-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Install winget
# uses: Cyberboss/install-winget@v1
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Install dependencies
# run: ./scripts/install-deps-windows.ps1
#
# - name: Format
# run: ./scripts/format.ps1 --dry-run
#
# linux-format:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Install dependencies
# run: sudo ./scripts/install-deps-linux.sh
#
# - name: Format
# run: ./scripts/format.sh --dry-run
#
# macos-format:
# runs-on: macos-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Install dependencies
# run: ./scripts/install-deps-macos.sh
#
# - name: Format
# run: ./scripts/format.sh --dry-run

auto-format:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request' }}

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Install dependencies
run: sudo ./scripts/install-deps-linux.sh

- name: Format
run: ./scripts/format.sh

- name: Check for modified files
id: git-check
run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT

- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name 'Github Actions'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git commit -am "FORMAT-AUTO: automatic format on pull request #${{ github.event.number }}"
git push
2 changes: 1 addition & 1 deletion .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish

on: [push, pull_request]
on: [push]

env:
MIRROR_URL: [email protected]:EpitechPromo2026/B-CPP-500-TLS-5-1-rtype-xavier.mitault.git
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
# Release script run in Github CI

BRANCH="$1"

LAST_TAG=$(git describe --tags --abbrev=0)
LAST_TAG=$(git tag | sort -t '.' --numeric-sort -k1,1 -k2,2 -k3,3 | tail -n 1)
LAST_TAG_MAJOR=$(echo "$LAST_TAG" | cut -d'.' -f1)
LAST_TAG_MINOR=$(echo "$LAST_TAG" | cut -d'.' -f2)
LAST_TAG_PATCH=$(echo "$LAST_TAG" | cut -d'.' -f3)
Expand Down Expand Up @@ -39,6 +40,6 @@ TAG="$TAG_MAJOR.$TAG_MINOR.$TAG_PATCH"
gh release create "$TAG" \
--title "v$TAG" \
--generate-notes \
--target main
--target "$BRANCH"

echo "release_tag=$TAG" >> $GITHUB_OUTPUT
Loading
Loading