Compare commits
5 Commits
c510fb8885
...
Developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| fbbd71b7d8 | |||
| 44041b6408 | |||
| 92f56a60d5 | |||
| 84c85949cf | |||
| 048bb8109f |
@@ -29,11 +29,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
conan install . --remote=bigfootpackages -pr:h=${{ matrix.conan_profile }} -pr:b=./ConanProfiles/Tools/clang --build=missing -s:h build_type=${{ matrix.build_type }}
|
conan install . --remote=bigfootpackages -pr:h=${{ matrix.conan_profile }} -pr:b=./ConanProfiles/Tools/clang --build=* -s:h build_type=${{ matrix.build_type }}
|
||||||
source ./build/${{ matrix.build_type }}/generators/conanbuild.sh
|
. ./build/${{ matrix.build_type }}/generators/conanbuild.sh
|
||||||
cmake -S . -B ./build/${{ matrix.build_type }} --toolchain ./build/${{ matrix.build_type }}/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_UNITY_BUILD=${{ matrix.unity_build }} -G "Ninja"
|
cmake -S . -B ./build/${{ matrix.build_type }} --toolchain ./build/${{ matrix.build_type }}/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_UNITY_BUILD=${{ matrix.unity_build }} -G "Ninja"
|
||||||
cmake --build build/${{ matrix.build_type }} --parallel $(nproc)
|
cmake --build build/${{ matrix.build_type }} --parallel $(nproc)
|
||||||
source ./build/${{ matrix.build_type }}/generators/deactivate_conanbuild.sh
|
. ./build/${{ matrix.build_type }}/generators/deactivate_conanbuild.sh
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ jobs:
|
|||||||
--version=1.0.0 \
|
--version=1.0.0 \
|
||||||
--user=bigfootdev \
|
--user=bigfootdev \
|
||||||
--channel=${{ env.BRANCH_NAME }} \
|
--channel=${{ env.BRANCH_NAME }} \
|
||||||
-pr:b=./ConanProfiles/clang -pr:h=./ConanProfiles/Tools/clang \
|
-pr:b=./ConanProfiles/Tools/clang -pr:h=./ConanProfiles/clang \
|
||||||
--build=missing --remote=bigfootpackages
|
--build=* --remote=bigfootpackages
|
||||||
|
|
||||||
CONAN_LOGIN_USERNAME=${ARTIFACTORY_USER} \
|
CONAN_LOGIN_USERNAME=${ARTIFACTORY_USER} \
|
||||||
CONAN_PASSWORD=${ARTIFACTORY_PASSWORD} \
|
CONAN_PASSWORD=${ARTIFACTORY_PASSWORD} \
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ jobs:
|
|||||||
- name: Generate
|
- name: Generate
|
||||||
run: |
|
run: |
|
||||||
conan profile detect
|
conan profile detect
|
||||||
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang_coverage -pr:b=./ConanProfiles/Tools/clang --build=missing -s:h build_type=Debug
|
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang_coverage -pr:b=./ConanProfiles/Tools/clang --build=* -s:h build_type=Debug
|
||||||
source ./build/${{ matrix.build_type }}/generators/conanbuild.sh
|
. ./build/Debug/generators/conanbuild.sh
|
||||||
cmake -S . -B ./build/Debug --toolchain ./build/Debug/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -G "Ninja"
|
cmake -S . -B ./build/Debug --toolchain ./build/Debug/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug -G "Ninja"
|
||||||
cmake --build build/Debug --parallel $(nproc)
|
cmake --build build/Debug --parallel $(nproc)
|
||||||
source ./build/${{ matrix.build_type }}/generators/deactivate_conanbuild.sh
|
. ./build/Debug/generators/deactivate_conanbuild.sh
|
||||||
|
|
||||||
- name: Clang-Tidy
|
- name: Clang-Tidy
|
||||||
run: run-clang-tidy -p ./build/Debug/ >> tidy_result.txt
|
run: run-clang-tidy -p ./build/Debug/ >> tidy_result.txt
|
||||||
|
|||||||
@@ -37,9 +37,7 @@ class AssertHandler
|
|||||||
* \param p_args Arguments for the format string.
|
* \param p_args Arguments for the format string.
|
||||||
*/
|
*/
|
||||||
template<typename... ARGS>
|
template<typename... ARGS>
|
||||||
static void Handle(const std::source_location& p_location,
|
static void Handle(const std::source_location& p_location, std::format_string<ARGS...> p_format, ARGS&&... p_args)
|
||||||
std::format_string<ARGS...> p_format,
|
|
||||||
ARGS&&... p_args)
|
|
||||||
{
|
{
|
||||||
BIN2CPP_LOG_FATAL("Assert: {} (File:{}, Line:{}, Function:{})",
|
BIN2CPP_LOG_FATAL("Assert: {} (File:{}, Line:{}, Function:{})",
|
||||||
std::format(p_format, std::forward<ARGS>(p_args)...),
|
std::format(p_format, std::forward<ARGS>(p_args)...),
|
||||||
@@ -73,8 +71,7 @@ class AssertHandler
|
|||||||
constexpr std::source_location location = std::source_location::current(); \
|
constexpr std::source_location location = std::source_location::current(); \
|
||||||
if (!(p_assert)) [[unlikely]] \
|
if (!(p_assert)) [[unlikely]] \
|
||||||
{ \
|
{ \
|
||||||
Bin2CPP::AssertHandler::Handle(location, \
|
Bin2CPP::AssertHandler::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
p_message __VA_OPT__(, ) __VA_ARGS__); \
|
|
||||||
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
||||||
{ \
|
{ \
|
||||||
Bin2CPP::Singleton<Bin2CPP::Log>::Instance().Flush(); \
|
Bin2CPP::Singleton<Bin2CPP::Log>::Instance().Flush(); \
|
||||||
@@ -89,8 +86,7 @@ class AssertHandler
|
|||||||
constexpr std::source_location location = std::source_location::current(); \
|
constexpr std::source_location location = std::source_location::current(); \
|
||||||
if (!(p_assert)) [[unlikely]] \
|
if (!(p_assert)) [[unlikely]] \
|
||||||
{ \
|
{ \
|
||||||
Bin2CPP::AssertHandler::Handle(location, \
|
Bin2CPP::AssertHandler::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
p_message __VA_OPT__(, ) __VA_ARGS__); \
|
|
||||||
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
||||||
{ \
|
{ \
|
||||||
Bin2CPP::Singleton<Bin2CPP::Log>::Instance().Flush(); \
|
Bin2CPP::Singleton<Bin2CPP::Log>::Instance().Flush(); \
|
||||||
@@ -105,8 +101,7 @@ class AssertHandler
|
|||||||
constexpr std::source_location location = std::source_location::current(); \
|
constexpr std::source_location location = std::source_location::current(); \
|
||||||
if (!(p_assert)) [[unlikely]] \
|
if (!(p_assert)) [[unlikely]] \
|
||||||
{ \
|
{ \
|
||||||
Bin2CPP::AssertHandler::Handle(location, \
|
Bin2CPP::AssertHandler::Handle(location, p_message __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
p_message __VA_OPT__(, ) __VA_ARGS__); \
|
|
||||||
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
if (Bin2CPP::Singleton<Bin2CPP::Log>::HasInstance()) \
|
||||||
{ \
|
{ \
|
||||||
Bin2CPP::Singleton<Bin2CPP::Log>::Instance().Flush(); \
|
Bin2CPP::Singleton<Bin2CPP::Log>::Instance().Flush(); \
|
||||||
|
|||||||
@@ -27,5 +27,4 @@ tools.cmake.cmaketoolchain:generator=Ninja
|
|||||||
!ninja/*: ninja/1.13.2
|
!ninja/*: ninja/1.13.2
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
mold/*:with_mimalloc=True
|
|
||||||
bin2cpp/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
|
|||||||
@@ -31,6 +31,5 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
|||||||
!ninja/*: ninja/1.13.2
|
!ninja/*: ninja/1.13.2
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
mold/*:with_mimalloc=True
|
|
||||||
bin2cpp/*:asan=True
|
bin2cpp/*:asan=True
|
||||||
bin2cpp/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
|
|||||||
@@ -25,6 +25,5 @@ tools.build:compiler_executables={"c": "clang", "cpp": "clang++"}
|
|||||||
!ninja/*: ninja/1.13.2
|
!ninja/*: ninja/1.13.2
|
||||||
|
|
||||||
[options]
|
[options]
|
||||||
mold/*:with_mimalloc=True
|
|
||||||
bin2cpp/*:build_tests=True
|
bin2cpp/*:build_tests=True
|
||||||
bin2cpp/*:coverage=True
|
bin2cpp/*:coverage=True
|
||||||
|
|||||||
Reference in New Issue
Block a user