Compare commits
25 Commits
main
...
c510fb8885
| Author | SHA1 | Date | |
|---|---|---|---|
| c510fb8885 | |||
| 742af1ae59 | |||
| 3fbb05a9bb | |||
| 218e235ef3 | |||
| 5c004994cf | |||
| 542186bff4 | |||
| a8d77cf9fa | |||
| 8627e197db | |||
| 27e4fdbfd4 | |||
| 7e273f922a | |||
| 0f66bd95fa | |||
| 56954e8bd0 | |||
| 51afc4d228 | |||
| e27fd9a424 | |||
| 31b7878766 | |||
| 104a85c98e | |||
| 49a035b160 | |||
| 03d633fb04 | |||
| b1c3349814 | |||
| 286bfa1d7b | |||
| 1b8c2cd3e8 | |||
| 2fcbb868e5 | |||
| a116731e46 | |||
| 1f61574360 | |||
| 8e8a5a03c5 |
@@ -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=* -s:h build_type=${{ matrix.build_type }}
|
conan install . --remote=bigfootpackages -pr:h=${{ matrix.conan_profile }} -pr:b=./ConanProfiles/Tools/clang --build=missing -s:h build_type=${{ matrix.build_type }}
|
||||||
. ./build/${{ matrix.build_type }}/generators/conanbuild.sh
|
source ./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)
|
||||||
. ./build/${{ matrix.build_type }}/generators/deactivate_conanbuild.sh
|
source ./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/Tools/clang -pr:h=./ConanProfiles/clang \
|
-pr:b=./ConanProfiles/clang -pr:h=./ConanProfiles/Tools/clang \
|
||||||
--build=* --remote=bigfootpackages
|
--build=missing --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=* -s:h build_type=Debug
|
conan install . --remote=bigfootpackages -pr:h=./ConanProfiles/clang_coverage -pr:b=./ConanProfiles/Tools/clang --build=missing -s:h build_type=Debug
|
||||||
. ./build/Debug/generators/conanbuild.sh
|
source ./build/${{ matrix.build_type }}/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)
|
||||||
. ./build/Debug/generators/deactivate_conanbuild.sh
|
source ./build/${{ matrix.build_type }}/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,7 +37,9 @@ 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, std::format_string<ARGS...> p_format, ARGS&&... p_args)
|
static void Handle(const std::source_location& p_location,
|
||||||
|
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)...),
|
||||||
@@ -71,7 +73,8 @@ 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, p_message __VA_OPT__(, ) __VA_ARGS__); \
|
Bin2CPP::AssertHandler::Handle(location, \
|
||||||
|
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(); \
|
||||||
@@ -86,7 +89,8 @@ 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, p_message __VA_OPT__(, ) __VA_ARGS__); \
|
Bin2CPP::AssertHandler::Handle(location, \
|
||||||
|
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(); \
|
||||||
@@ -101,7 +105,8 @@ 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, p_message __VA_OPT__(, ) __VA_ARGS__); \
|
Bin2CPP::AssertHandler::Handle(location, \
|
||||||
|
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,4 +27,5 @@ 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,5 +31,6 @@ 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,5 +25,6 @@ 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