feat support build type for mips64
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m24s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 1m19s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 1m20s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 1m19s

This commit is contained in:
tqcq 2024-03-31 15:27:45 +08:00
parent 78eedb6a65
commit 5095516686
2 changed files with 24 additions and 15 deletions

View File

@ -28,6 +28,9 @@ permissions: [read]
jobs:
linux-gcc-mips64el:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Debug", "Release"]
steps:
- uses: actions/checkout@v4
with:
@ -72,7 +75,7 @@ jobs:
- name: configure
run: |
mkdir build && cd build
cmake .. -DSLED_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=../toolchains/mips64el-linux-gnuabi64.toolchain.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-mips64el;-L;/usr/mips64el-linux-gnuabi64"
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSLED_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=../toolchains/mips64el-linux-gnuabi64.toolchain.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-mips64el;-L;/usr/mips64el-linux-gnuabi64"
- name: build
run: cmake --build build --target all -j `nproc`
- name: test

View File

@ -63,6 +63,10 @@ void_cast(TRet (TClass::*mem_func)(Args...))
return void_casted;
}
// TODO: Support Linux
#if defined(__APPLE__)
TEST_SUITE("Symbolize")
{
TEST_CASE("Trivial Function")
{
CHECK_EQ(doctest::String("TrivialFunc()"), TrySymbolize(void_cast(TrivialFunc)));
@ -82,6 +86,8 @@ TEST_CASE("Static Member Function")
{
CHECK_EQ(doctest::String("Class::StaticFunc()"), TrySymbolize(void_cast(&Class::StaticFunc)));
}
}
#endif
int
main(int argc, char *argv[])