Small tweaks and fixes

This commit is contained in:
Jeremy 2023-07-21 22:36:48 -04:00
parent d7a5eb54fd
commit 237a23def4
No known key found for this signature in database
GPG Key ID: 19AA8270105E8EB4
4 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@ on:
pull_request:
jobs:
test-linux:
performancetest-linux:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
@ -43,7 +43,7 @@ jobs:
run: |
./speedtest | python3 ../ci/speedtest.py ${{matrix.config}}
# TODO: For some reason this is slow on github's runner
#test-windows:
#performancetest-windows:
# runs-on: windows-2019
# strategy:
# fail-fast: false

View File

@ -7,7 +7,7 @@ on:
# TODO: Test statically linked
jobs:
build-linux:
test-linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
@ -17,7 +17,7 @@ jobs:
run: |
pip3 install colorama
python3 ci/test-all-configs.py
build-macos:
test-macos:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
@ -25,7 +25,7 @@ jobs:
run: |
pip3 install colorama
python3 ci/test-all-configs.py
build-windows-msvc:
test-windows-msvc:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
@ -35,7 +35,7 @@ jobs:
run: |
pip3 install colorama
python3 ci/test-all-configs.py --msvc-only
build-windows-clang:
test-windows-clang:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
@ -45,7 +45,7 @@ jobs:
run: |
pip3 install colorama
python3 ci/test-all-configs.py --clang-only
build-windows-mingw:
test-windows-mingw:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2

View File

@ -77,7 +77,7 @@ def build(matrix):
print()
def build_full_or_auto(matrix):
print(matrix)
print(f"{Fore.BLUE}{Style.BRIGHT}{'=' * 10} Running build with config {'<auto>' if matrix['config'] == '' else ', '.join(matrix.values())} {'=' * 10}{Style.RESET_ALL}")
if os.path.exists("build"):
shutil.rmtree("build")

View File

@ -55,7 +55,7 @@ namespace cpptrace {
// SymGetTypeInfo utility
template<typename T, IMAGEHLP_SYMBOL_TYPE_INFO SymType, bool FAILABLE = false>
auto get_info(ULONG type_index, HANDLE proc, ULONG64 modbase) {
T get_info(ULONG type_index, HANDLE proc, ULONG64 modbase) {
T info;
if(!SymGetTypeInfo(proc, modbase, type_index, static_cast<::IMAGEHLP_SYMBOL_TYPE_INFO>(SymType), &info)) {
if(FAILABLE) {
@ -71,7 +71,7 @@ namespace cpptrace {
}
template<IMAGEHLP_SYMBOL_TYPE_INFO SymType, bool FAILABLE = false>
auto get_info_wchar(ULONG type_index, HANDLE proc, ULONG64 modbase) {
std::string get_info_wchar(ULONG type_index, HANDLE proc, ULONG64 modbase) {
WCHAR* info;
if(!SymGetTypeInfo(proc, modbase, type_index, static_cast<::IMAGEHLP_SYMBOL_TYPE_INFO>(SymType), &info)) {
throw std::logic_error(