-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added CIs, added more documentation, rename main.hpp to main.h
- Loading branch information
1 parent
bdbc3b9
commit 18181e0
Showing
8 changed files
with
349 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Replace this line with a summary of your changes. | ||
|
||
- [ ] My PR is titled using the [convention commits style](https://www.conventionalcommits.org/en/v1.0.0/) | ||
- [ ] I tested my changes before raising the PR. | ||
- [ ] I have not built my pull request using AI, a static analysis tool, or similar, without any human oversight. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: D++ CI | ||
on: | ||
push: | ||
paths: | ||
- '**Dockerfile' | ||
- '**.cxx' | ||
- '**.cpp' | ||
- '**.h' | ||
- '**.hpp' | ||
- '**.cmake' | ||
- '**ci.yml' | ||
- '**CMakeLists.txt' | ||
pull_request: | ||
paths: | ||
- '**Dockerfile' | ||
- '**.cxx' | ||
- '**.cpp' | ||
- '**.h' | ||
- '**.hpp' | ||
- '**.cmake' | ||
- '**ci.yml' | ||
- '**CMakeLists.txt' | ||
- '!**/docpages/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
linux: | ||
permissions: | ||
contents: write | ||
name: Linux ${{matrix.cfg.arch}} (${{matrix.cfg.cpp-version}}) | ||
runs-on: ${{matrix.cfg.os}} | ||
strategy: | ||
fail-fast: false # Don't fail everything if one fails. We want to test each OS/Compiler individually | ||
matrix: | ||
cfg: | ||
- { arch: 'amd64', concurrency: 2, os: ubuntu-22.04, package: clang-13, cpp-version: clang++-13} | ||
- { arch: 'amd64', concurrency: 2, os: ubuntu-22.04, package: clang-14, cpp-version: clang++-14} | ||
- { arch: 'amd64', concurrency: 2, os: ubuntu-22.04, package: clang-15, cpp-version: clang++-15} | ||
- { arch: 'amd64', concurrency: 2, os: ubuntu-22.04, package: g++-13, cpp-version: g++-13} | ||
- { arch: 'amd64', concurrency: 2, os: ubuntu-22.04, package: g++-12, cpp-version: g++-12} | ||
- { arch: 'amd64', concurrency: 2, os: ubuntu-22.04, package: g++-11, cpp-version: g++-11} | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 | ||
with: | ||
egress-policy: audit | ||
|
||
- name: Checkout FDR | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
||
- name: Install apt packages | ||
run: sudo apt update && sudo apt-get install -y ${{ matrix.cfg.package }} pkg-config libsodium-dev libopus-dev zlib1g-dev rpm | ||
|
||
- name: Install DPP | ||
run: wget -O dpp.deb https://dl.dpp.dev/ && sudo dpkg -i dpp.deb | ||
|
||
- name: Generate CMake | ||
run: cmake -B build | ||
env: | ||
CXX: ${{matrix.cfg.cpp-version}} | ||
|
||
- name: Build Project | ||
run: cmake --build build -j${{ matrix.cfg.concurrency }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
# IDE stuff | ||
.idea | ||
.vs | ||
|
||
# Build directories | ||
_build | ||
build | ||
cmake-build-debug | ||
|
||
# Xcode stuff | ||
*.xcworkspace | ||
*.xcuserdatad | ||
*.xcscheme | ||
_build | ||
build | ||
|
||
# Apple stuff. | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#pragma once |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.