Skip to content

Commit

Permalink
Merge pull request #108 from edunad/features/diligent
Browse files Browse the repository at this point in the history
Move to diligent
  • Loading branch information
edunad authored Feb 23, 2024
2 parents 67587fa + aeec770 commit d31342a
Show file tree
Hide file tree
Showing 1,034 changed files with 43,645 additions and 43,646 deletions.
9 changes: 8 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ Checks: clang-diagnostic-*
modernize-*
hicpp-*
misc-unused-*
misc-include-cleaner
readability-*
performance-*
-cppcoreguidelines-avoid-do-while
-cppcoreguidelines-pro-bounds-constant-array-index
-modernize-use-trailing-return-type
Expand All @@ -22,6 +23,12 @@ Checks: clang-diagnostic-*
-cppcoreguidelines-narrowing-conversions
-hicpp-explicit-conversions
-clang-analyzer-optin.cplusplus.UninitializedObject
-modernize-use-trailing-return-type
-readability-braces-around-statements
-readability-magic-numbers
-readability-identifier-length
-readability-function-cognitive-complexity
-readability-convert-member-functions-to-static
WarningsAsErrors: "*"
HeaderFilterRegex: ""
AnalyzeTemporaryDtors: false
2 changes: 2 additions & 0 deletions .clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
Add: ['-std:c++latest']
23 changes: 21 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,34 @@ name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: BUG
assignees: ''
assignees: ""
---

### RawrBox lib

- [] rawrbox.assimp
- [] rawrbox.bass
- [] rawrbox.engine
- [] rawrbox.math
- [] rawrbox.network
- [] rawrbox.physics_2d
- [] rawrbox.physics_3d
- [] rawrbox.render
- [] rawrbox.resources
- [] rawrbox.scripting
- [] rawrbox.ui
- [] rawrbox.utils
- [] rawrbox.webm

---

- [] UNKNOWN

### Description

Briefly describe the bug you encountered.

### Reproduction Steps
### Reproduction Steps (if any)

1. Step-by-step instructions to reproduce the bug.
2. Include any specific input, settings, or conditions needed.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
69 changes: 42 additions & 27 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,74 @@
"📷 RENDERER":
- changed-files: "render/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.render/**/*"

"🧮 MATH":
- changed-files: "math/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.math/**/*"

"🖼️ UI":
- changed-files: "ui/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.ui/**/*"

"⚒️ UTILS":
- changed-files: "utils/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.utils/**/*"

"🐲 SAMPLES":
- changed-files: "samples/**/*"
- changed-files:
- any-glob-to-any-file: "samples/**/*"

"🧱 3D PHYSICS":
- changed-files: "physics_3d/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.physics_3d/**/*"

"🏀 2D PHYSICS":
- changed-files: "physics_2d/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.physics_2d/**/*"

"🎺 BASS":
- changed-files: "bass/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.bass/**/*"

"💼 RESOURCES":
- changed-files: "resources/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.resources/**/*"

"💽 ENGINE":
- changed-files: "engine/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.engine/**/*"

"🧪 TESTS":
- changed-files: "**/tests/**/*.cpp"

"📜 SCRIPTING":
- changed-files:
[
"scripting/**/*",
"bass/**/scripting/*",
"network/**/scripting/*",
"render/**/scripting/*",
"resources/**/scripting/*",
"ui/**/scripting/*",
"**/*.lua",
]
- any-glob-to-any-file: "**/tests/**/*.cpp"

"🎞 WEBM":
- changed-files: "webm/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.webm/**/*"

"🧙‍♂️ ASSIMP":
- changed-files: "assimp/**/*"
- changed-files:
- any-glob-to-any-file: "rawrbox.assimp/**/*"

"📜 SCRIPTING":
- changed-files:
- any-glob-to-any-file:
[
"rawrbox.scripting/**/*",
"rawrbox.bass/**/scripting/*",
"rawrbox.network/**/scripting/*",
"rawrbox.render/**/scripting/*",
"rawrbox.resources/**/scripting/*",
"rawrbox.ui/**/scripting/*",
"**/*.lua",
"**/*.luau",
]

"FEATURE":
- head-branch: "^features/"
- head-branch: ["^features/"]

"BUG":
- head-branch: "^bugfixes/"
- head-branch: ["^bugfixes/"]

"IMPROVEMENTS":
- head-branch: "^improvements/"
- head-branch: ["^improvements/"]
42 changes: 21 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,28 @@ concurrency:

jobs:
build-linux:
runs-on: [self-hosted]
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
uses: actions/checkout@v4.1.1

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y build-essential wget cmake libssl-dev libvpx-dev gcc-11 libgl1-mesa-glx libgl1-mesa-dev libglew-dev ninja-build python3-pip libx11-dev libx11-xcb-dev libfontenc-dev libice-dev libsm-dev libxau-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxrender-dev libxres-dev libxss-dev libxt-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev xtrans-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev xkb-data libxcb-dri3-dev uuid-dev libxcb-util-dev
- name: Cache c++
uses: hendrikmuhs/ccache-action@v1.2.10
uses: hendrikmuhs/ccache-action@v1.2.12
with:
append-timestamp: false
restore-keys: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './bass/CMakeLists.txt', './engine/CMakeLists.txt', './math/CMakeLists.txt', './render/CMakeLists.txt', './resources/CMakeLists.txt', './ui/CMakeLists.txt', './utils/CMakeLists.txt', './physics_3d/CMakeLists.txt', './physics_2d/CMakeLists.txt', './webm/CMakeLists.txt', './assimp/CMakeLists.txt', './scripting/CMakeLists.txt', './network/CMakeLists.txt') }}-
key: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './bass/CMakeLists.txt', './engine/CMakeLists.txt', './math/CMakeLists.txt', './render/CMakeLists.txt', './resources/CMakeLists.txt', './ui/CMakeLists.txt', './utils/CMakeLists.txt', './physics_3d/CMakeLists.txt', './physics_2d/CMakeLists.txt', './webm/CMakeLists.txt', './assimp/CMakeLists.txt', './scripting/CMakeLists.txt', './network/CMakeLists.txt') }}
restore-keys: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './rawrbox.assimp/CMakeLists.txt', './rawrbox.bass/CMakeLists.txt', './rawrbox.engine/CMakeLists.txt', './rawrbox.math/CMakeLists.txt', './rawrbox.network/CMakeLists.txt', './rawrbox.physics_2d/CMakeLists.txt', './rawrbox.physics_3d/CMakeLists.txt', './rawrbox.render/CMakeLists.txt', './rawrbox.resources/CMakeLists.txt', './rawrbox.scripting/CMakeLists.txt', './rawrbox.ui/CMakeLists.txt', './rawrbox.utils/CMakeLists.txt', './rawrbox.webm/CMakeLists.txt') }}-
key: host-${{ runner.os }}-${{ hashFiles('./CMakeLists.txt', './rawrbox.assimp/CMakeLists.txt', './rawrbox.bass/CMakeLists.txt', './rawrbox.engine/CMakeLists.txt', './rawrbox.math/CMakeLists.txt', './rawrbox.network/CMakeLists.txt', './rawrbox.physics_2d/CMakeLists.txt', './rawrbox.physics_3d/CMakeLists.txt', './rawrbox.render/CMakeLists.txt', './rawrbox.resources/CMakeLists.txt', './rawrbox.scripting/CMakeLists.txt', './rawrbox.ui/CMakeLists.txt', './rawrbox.utils/CMakeLists.txt', './rawrbox.webm/CMakeLists.txt') }}

- name: CMAKE Setup
id: setup
run: |
mkdir -p build && cd build
CXX=g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DRAWRBOX_OUTPUT_BIN="bin" -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DRAWRBOX_DEV_MODE:BOOL="ON"
CXX=g++ cmake .. -G Ninja -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_RUNTIME_OUTPUT_DIRECTORY="bin" -DCMAKE_EXPORT_COMPILE_COMMANDS="ON" -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DRAWRBOX_DEV_MODE:BOOL="ON"
cd ../
- name: Build
Expand All @@ -53,32 +51,34 @@ jobs:
- name: Run tests
run: |
cd build
ctest --test-dir ./math --output-on-failure
ctest --test-dir ./utils --output-on-failure
ctest --test-dir ./render --output-on-failure
ctest --test-dir ./engine --output-on-failure
ctest --test-dir ./resources --output-on-failure
ctest --test-dir ./scripting --output-on-failure
ctest --test-dir ./rawrbox.math --output-on-failure
ctest --test-dir ./rawrbox.utils --output-on-failure
ctest --test-dir ./rawrbox.render --output-on-failure
ctest --test-dir ./rawrbox.engine --output-on-failure
ctest --test-dir ./rawrbox.resources --output-on-failure
ctest --test-dir ./rawrbox.scripting --output-on-failure
- name: Run linter
uses: cpp-linter/cpp-linter-action@v2.6.0
uses: cpp-linter/cpp-linter-action@v2.9.1
if: github.ref != 'refs/heads/master'
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
files-changed-only: true
tidy-checks: ""
extra-args: "-std=c++20 -Wall"
version: "16"
database: "./build/"
extra-args: "-std=c++23 -Wall"
version: "17"
database: "${{github.workspace}}/build/"
step-summary: true
repo-root: "${{github.workspace}}"
thread-comments: true
ignore: build | _deps | .github | render/include/stb | engine/tests | math/tests | render/tests | resources/tests | utils/tests | scripting/tests
no-lgtm: false
ignore: build | _deps | .github | rawrbox.render/include/stb | rawrbox.engine/tests | rawrbox.math/tests | rawrbox.render/tests | rawrbox.resources/tests | rawrbox.utils/tests | rawrbox.scripting/tests

- name: Upload build artifacts
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.0
with:
name: output
path: bin
2 changes: 1 addition & 1 deletion .github/workflows/cache-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Cleanup
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Label PR
uses: actions/labeler@v5.0.0-alpha.1
uses: actions/labeler@v5.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
50 changes: 25 additions & 25 deletions .github/workflows/scripting_check.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: CI/CD - COMMENTS
on:
pull_request:
types: [labeled, unlabeled]
pull_request:
types: [labeled, unlabeled]

jobs:
comment:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Find comment
uses: peter-evans/find-comment@v2
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: ## NOTICE - A LUA API change was detected ⚠
comment:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Find comment
uses: peter-evans/find-comment@v3.0.0
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: "github-actions[bot]"
body-includes: ## NOTICE - A LUA API change was detected ⚠

- name: Create / Update comment
uses: peter-evans/create-or-update-comment@v3
if: contains(github.event.pull_request.labels.*.name, '📜 SCRIPTING')
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## NOTICE - A LUA API change was detected ⚠
- Ensure [**wiki** / **rawrbox-lib**](https://github.com/edunad/rawrbox-wiki) is up to date.
edit-mode: replace
- name: Create / Update comment
uses: peter-evans/create-or-update-comment@v4.0.0
if: contains(github.event.pull_request.labels.*.name, '📜 SCRIPTING')
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## NOTICE - A LUA API change was detected ⚠
- Ensure [**wiki** / **rawrbox-lib**](https://github.com/edunad/rawrbox-wiki) is up to date.
edit-mode: replace
48 changes: 28 additions & 20 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/math/include/**/*",
"${workspaceFolder}/render/include/**/*",
"${workspaceFolder}/ui/include/**/*",
"${workspaceFolder}/utils/include/**/*",
"${workspaceFolder}/sample/cube/include/**/*"
],
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.18362.0",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "windows-msvc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/math/include/**/*",
"${workspaceFolder}/render/include/**/*",
"${workspaceFolder}/ui/include/**/*",
"${workspaceFolder}/utils/include/**/*",
"${workspaceFolder}/assimp/include/**/*",
"${workspaceFolder}/resources/include/**/*",
"${workspaceFolder}/scripting/include/**/*",
"${workspaceFolder}/webm/include/**/*",
"${workspaceFolder}/bass/include/**/*",
"${workspaceFolder}/engine/include/**/*",
"${workspaceFolder}/physics_2d/include/**/*",
"${workspaceFolder}/physics_3d/include/**/*",
"${workspaceFolder}/network/include/**/*"
],
"defines": ["_DEBUG", "UNICODE", "_UNICODE"],
"windowsSdkVersion": "10.0.18362.0",
"cStandard": "c17",
"cppStandard": "c++20",
"intelliSenseMode": "windows-msvc-x64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"stencil",
"http",
"curtime",
"BGFX_FRAME",
"FRAME",
"resources",
"timer",
"Instance",
Expand Down
Loading

0 comments on commit d31342a

Please sign in to comment.