Small tweaks and fixes
This commit is contained in:
parent
d7a5eb54fd
commit
237a23def4
4
.github/workflows/performance-tests.yml
vendored
4
.github/workflows/performance-tests.yml
vendored
@ -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
|
||||
|
||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user