Skip to content

Commit d588861

Browse files
Merge pull request #106 from brainboxdotcc/dev
Dev
2 parents 717f7e5 + dbd5997 commit d588861

File tree

215 files changed

+12453
-9924
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+12453
-9924
lines changed

.cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@
132132
"loadu",
133133
"cvtps",
134134
"neww",
135-
"STDCORO"
135+
"STDCORO",
136+
"NOMINMAX"
136137
],
137138
"flagWords": [
138139
"hte"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[ Please outline your change here. Be sure to check the checkboxes below. ]
2+
3+
## Code change checklist
4+
5+
- [ ] I have ensured that all methods and functions are **fully documented** using doxygen style comments.
6+
- [ ] My code follows the [coding style guide](https://dpp.dev/coding-standards.html).
7+
- [ ] I tested that my change works before raising the PR.
8+
- [ ] I have ensured that I did not break any existing API calls.
9+
- [ ] I have not built my pull request using AI, a static analysis tool or similar without any human oversight.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[ Please outline your change here. Be sure to check the checkboxes below. ]
2+
3+
## Documentation change checklist
4+
5+
- [ ] My documentation changes follow the same style as the rest of the documentation and any examples follow the [coding style guide](https://dpp.dev/coding-standards.html).
6+
- [ ] I tested that my change works before raising the PR (via running `doxygen`, and testing examples).
7+
- [ ] I have not moved any existing pages or changed any existing URLs without strong justification as to why.
8+
- [ ] I have not generated content using AI or a desktop utility such as grammarly.

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
documentation:
2+
- '**Doxyfile'
3+
- '**docpages/**'
4+
- '**/*.h'
5+
- '**/documentation.yml'

.github/pull_request_template.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
- [ ] My pull request is made against the `dev` branch.
2-
- [ ] I have ensured that the changed library can be built on your target system. I did not introduce any platform-specific code.
3-
- [ ] I have ensured that all methods and functions are **fully documented** using doxygen style comments.
4-
- [ ] I tested my commits, by adding a test case to the unit tests if needed
5-
- [ ] I have ensured that I did not break any existing API calls.
6-
- [ ] My code follows the [coding style guide](https://dpp.dev/coding-standards.html) (if you are not sure, match the code style of existing files including indent style etc).
7-
- [ ] I have not built my pull request using AI, a static analysis tool or similar without any human oversight. Where I have generated this pull request using a tool, I have justified why this is needed.
1+
Please go the the `Preview` tab and select the appropriate pull request template for your changes:
82

3+
* [Code Changes](?expand=1&template=code_change_template.md)
4+
* [Documentation Changes](?expand=1&template=docs_change_template.md)

.github/workflows/ci.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,23 @@ jobs:
3737

3838
steps:
3939
- name: Harden Runner
40-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
40+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
4141
with:
4242
egress-policy: audit
4343

4444
- name: Checkout D++
45-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
45+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4646

4747
- name: Install apt packages
48-
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt update && sudo apt install ${{ matrix.cfg.cpp-version }} ninja-build libsodium-dev libopus-dev zlib1g-dev rpm
48+
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt update && sudo apt install ${{ matrix.cfg.cpp-version }} libsodium-dev libopus-dev zlib1g-dev rpm
4949

5050
- name: Generate CMake
51-
run: mkdir build && cd build && cmake -G Ninja -DDPP_NO_VCPKG=ON -DAVX_TYPE=T_fallback -DCMAKE_BUILD_TYPE=Release ..
51+
run: mkdir build && cd build && cmake -DDPP_NO_VCPKG=ON -DAVX_TYPE=AVX0 -DCMAKE_BUILD_TYPE=Release ..
5252
env:
5353
CXX: ${{matrix.cfg.cpp-version}}
5454

5555
- name: Build Project
56-
run: cd build && ninja
56+
run: cd build && make -j2
5757

5858
- name: Run unit tests
5959
run: cd build/library && ./unittest
@@ -79,23 +79,23 @@ jobs:
7979

8080
steps:
8181
- name: Harden Runner
82-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
82+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
8383
with:
8484
egress-policy: audit
8585

8686
- name: Checkout D++
87-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
87+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
8888

8989
- name: Install apt packages
90-
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt update && sudo apt install ${{ matrix.cfg.cpp-version }} ninja-build libsodium-dev libopus-dev zlib1g-dev rpm
90+
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt update && sudo apt install ${{ matrix.cfg.cpp-version }} libsodium-dev libopus-dev zlib1g-dev rpm
9191

9292
- name: Generate CMake
93-
run: mkdir build && cd build && cmake -G Ninja -DDPP_NO_VCPKG=ON -DAVX_TYPE=T_fallback -DCMAKE_BUILD_TYPE=Release ${{matrix.cfg.cmake-flags}} ..
93+
run: mkdir build && cd build && cmake -DDPP_NO_VCPKG=ON -DAVX_TYPE=AVX0 -DCMAKE_BUILD_TYPE=Release ${{matrix.cfg.cmake-flags}} ..
9494
env:
9595
CXX: ${{matrix.cfg.cpp-version}}
9696

9797
- name: Build Project
98-
run: cd build && ninja
98+
run: cd build && make -j2
9999

100100
- name: Package distributable
101101
if: ${{ matrix.cfg.cpp-version == 'g++-10' }}
@@ -120,23 +120,23 @@ jobs:
120120
runs-on: macos-latest
121121
steps:
122122
- name: Harden Runner
123-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
123+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
124124
with:
125125
egress-policy: audit
126126

127127
- name: Checkout D++
128-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
128+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
129129

130130
- name: Install homebrew packages
131-
run: brew install cmake ninja libsodium opus openssl
131+
run: brew install cmake make libsodium opus openssl
132132

133133
- name: Generate CMake
134-
run: mkdir build && cd build && cmake -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release -DDPP_CORO=ON -DAVX_TYPE=T_fallback -G Ninja ..
134+
run: mkdir build && cd build && cmake -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release -DDPP_CORO=ON -DAVX_TYPE=AVX0 ..
135135
env:
136136
DONT_RUN_VCPKG: true
137137

138138
- name: Build Project
139-
run: cd build && ninja
139+
run: cd build && make -j2
140140
env:
141141
DONT_RUN_VCPKG: true
142142

@@ -158,12 +158,12 @@ jobs:
158158
runs-on: ${{matrix.cfg.os}}
159159
steps:
160160
- name: Harden Runner
161-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
161+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
162162
with:
163163
egress-policy: audit
164164

165165
- name: Checkout D++
166-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
166+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
167167
with:
168168
path: main
169169

@@ -175,18 +175,18 @@ jobs:
175175

176176
- name: Generate CMake (x64)
177177
if: ${{ matrix.cfg.arch == 'x64' }}
178-
run: mkdir main/build && cd main/build && cmake -G "Visual Studio ${{matrix.cfg.vsv}} ${{matrix.cfg.vs}}" -DDPP_NO_VCPKG=ON -DAVX_TYPE=T_fallback ..
178+
run: mkdir main/build && cd main/build && cmake -G "Visual Studio ${{matrix.cfg.vsv}} ${{matrix.cfg.vs}}" -DDPP_NO_VCPKG=ON -DAVX_TYPE=AVX0 ..
179179
env:
180180
DONT_RUN_VCPKG: true
181181

182182
- name: Generate CMake (x86)
183183
if: ${{ matrix.cfg.arch == 'x86' }}
184-
run: mkdir main/build && cd main/build && cmake -DCMAKE_TOOLCHAIN_FILE="cmake\Win32Toolchain.cmake" -DDPP_NO_VCPKG=ON -DAVX_TYPE=T_fallback -G "Visual Studio ${{matrix.cfg.vsv}} ${{matrix.cfg.vs}}" -A Win32 -T host=x86 ..
184+
run: mkdir main/build && cd main/build && cmake -DCMAKE_TOOLCHAIN_FILE="cmake\Win32Toolchain.cmake" -DDPP_NO_VCPKG=ON -DAVX_TYPE=AVX0 -G "Visual Studio ${{matrix.cfg.vsv}} ${{matrix.cfg.vs}}" -A Win32 -T host=x86 ..
185185
env:
186186
DONT_RUN_VCPKG: true
187187

188188
- name: Build Project
189-
run: cmake --build main/build --target dpp --config ${{matrix.cfg.config}}
189+
run: cmake --build main/build --target dpp --config ${{matrix.cfg.config}} --parallel 2
190190
env:
191191
DONT_RUN_VCPKG: true
192192

@@ -219,24 +219,24 @@ jobs:
219219
runs-on: ${{matrix.cfg.os}}
220220
steps:
221221
- name: Harden Runner
222-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
222+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
223223
with:
224224
egress-policy: audit
225225

226226
- name: Checkout D++
227-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
227+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
228228

229229
- name: Install Packages
230-
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt update && sudo apt install cmake ninja-build rpm
230+
run: sudo sed -i 's/azure\.//' /etc/apt/sources.list && sudo apt update && sudo apt install cmake rpm
231231

232232
- name: Generate CMakeFiles
233-
run: mkdir build && cd build && sudo cmake ${{matrix.cfg.cmake-options}} -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release -DAVX_TYPE=T_fallback -G Ninja ..
233+
run: mkdir build && cd build && sudo cmake ${{matrix.cfg.cmake-options}} -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release -DAVX_TYPE=AVX0 ..
234234

235235
- name: Compile Source
236-
run: cd build && sudo ninja
236+
run: cd build && sudo make -j2
237237

238238
- name: Package Distributable
239-
run: cd build && cpack --verbose
239+
run: cd build && sudo cpack --verbose || cat /home/runner/work/DPP/DPP/build/_CPack_Packages/Linux/DEB/PreinstallOutput.log
240240

241241
- name: Upload Binaries (DEB)
242242
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
@@ -254,19 +254,19 @@ jobs:
254254
# runs-on: macos-10.15
255255
# name: FreeBSD (g++-10)
256256
# steps:
257-
# - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
257+
# - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
258258
# - name: FreeBSD Build and Package
259259
# id: freebsdtest
260260
# uses: vmactions/[email protected]
261261
# with:
262262
# usesh: true
263-
# prepare: pkg install -y openssl-devel gcc gmake ninja cmake git
263+
# prepare: pkg install -y openssl-devel gcc gmake cmake git
264264
# run: |
265265
# pwd
266266
# ls -lah
267267
# mkdir build
268268
# cd build
269-
# cmake -DAVX_TYPE=T_fallback -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release ..
269+
# cmake -DAVX_TYPE=AVX0 -DDPP_NO_VCPKG=ON -DCMAKE_BUILD_TYPE=Release ..
270270
# make -j2
271271
# make install
272272
# cpack --verbose

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ jobs:
3737

3838
steps:
3939
- name: Harden Runner
40-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
40+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
4141
with:
4242
egress-policy: audit
4343

4444
- name: Checkout repository
45-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
45+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4646

4747
# Initializes the CodeQL tools for scanning.
4848
- name: Initialize CodeQL
49-
uses: github/codeql-action/init@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
49+
uses: github/codeql-action/init@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
5050
with:
5151
languages: ${{ matrix.language }}
5252
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -61,6 +61,6 @@ jobs:
6161
make -j2
6262
6363
- name: Perform CodeQL Analysis
64-
uses: github/codeql-action/analyze@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
64+
uses: github/codeql-action/analyze@00e563ead9f72a8461b24876bee2d0c2e8bd2ee8 # v2.21.5
6565
with:
6666
category: "/language:${{matrix.language}}"

.github/workflows/construct-vcpkg-info.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Harden Runner
13-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
13+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
1414
with:
1515
egress-policy: audit
1616

@@ -20,7 +20,7 @@ jobs:
2020
php-version: '8.1'
2121

2222
- name: Checkout D++
23-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
23+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2424
with:
2525
submodules: recursive
2626

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Harden Runner
20-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
20+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
2121
with:
2222
egress-policy: audit
2323

2424
- name: 'Checkout Repository'
25-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
25+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@1360a344ccb0ab6e9475edef90ad2f46bf8003b1 # v3.0.6
27+
uses: actions/dependency-review-action@f6fff72a3217f580d5afd49a46826795305b63c7 # v3.0.8

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
cancel-in-progress: false
1717
steps:
1818
- name: Harden Runner
19-
uses: step-security/harden-runner@cba0d00b1fc9a034e1e642ea0f1103c282990604 # v2.5.0
19+
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
2020
with:
2121
egress-policy: audit
2222

0 commit comments

Comments
 (0)