Restore buildbot status
This commit is contained in:
parent
d9618e862e
commit
fe908fe0bc
11 changed files with 53 additions and 49 deletions
49
.github/workflows/cmake-single-platform.yml
vendored
Normal file
49
.github/workflows/cmake-single-platform.yml
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage.
|
||||||
|
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml
|
||||||
|
name: CMake on a single platform
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "master" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "master" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||||
|
BUILD_TYPE: Release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
||||||
|
# You can convert this to a matrix build if you need cross-platform coverage.
|
||||||
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Sutup Dependencies
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install python3 python-is-python3
|
||||||
|
sudo apt-get install -y libx11-dev libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev
|
||||||
|
sudo apt-get install -y clang-15
|
||||||
|
sudo apt-get install -y libasound2-dev libglew-dev
|
||||||
|
sudo apt-get install -y portaudio19-dev
|
||||||
|
|
||||||
|
- name: Configure CMake
|
||||||
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
# Build your program with the given configuration
|
||||||
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
working-directory: ${{github.workspace}}/build
|
||||||
|
# Execute tests defined by the CMake configuration.
|
||||||
|
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
||||||
|
run: ctest -C ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
|
|
@ -30,8 +30,6 @@ SUITE(Connection) {
|
||||||
CHECK(data[i] == dataRead[i]);
|
CHECK(data[i] == dataRead[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(NO_TESTS) { CHECK(false); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,4 @@ SUITE(Buffer2D) {
|
||||||
buff.set({ 2, 2 }, 5);
|
buff.set({ 2, 2 }, 5);
|
||||||
CHECK(buff.get({ 2, 2 }) == 5);
|
CHECK(buff.get({ 2, 2 }) == 5);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(NO_TESTS) {
|
|
||||||
CHECK(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,4 @@ SUITE(Buffer) {
|
||||||
buff.pop();
|
buff.pop();
|
||||||
CHECK(buff.size() == 0);
|
CHECK(buff.size() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(NO_TEST) { CHECK(false); }
|
|
||||||
}
|
}
|
||||||
3
Externals/CMakeLists.txt
vendored
3
Externals/CMakeLists.txt
vendored
|
|
@ -30,8 +30,9 @@ endif()
|
||||||
#target_compile_definitions(glew_s PUBLIC GLEW_NO_GLU)
|
#target_compile_definitions(glew_s PUBLIC GLEW_NO_GLU)
|
||||||
|
|
||||||
#add_subdirectory(unittest-cpp)
|
#add_subdirectory(unittest-cpp)
|
||||||
|
|
||||||
add_subdirectory(lalr)
|
add_subdirectory(lalr)
|
||||||
|
target_compile_options(UnitTest++ PUBLIC -Wno-error)
|
||||||
|
|
||||||
add_subdirectory(glfw)
|
add_subdirectory(glfw)
|
||||||
|
|
||||||
project(Imgui)
|
project(Imgui)
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,6 @@ SUITE(Math) {
|
||||||
CHECK((tmp1 - tmp2).mod() < 0.001);
|
CHECK((tmp1 - tmp2).mod() < 0.001);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST(NO_TESTS) { CHECK(false); }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,6 @@
|
||||||
|
|
||||||
#include "Utils.hpp"
|
#include "Utils.hpp"
|
||||||
|
|
||||||
#include <ctime>
|
|
||||||
#include <random>
|
|
||||||
|
|
||||||
void initializeCallStackCapture();
|
|
||||||
void deinitializeCallStackCapture();
|
|
||||||
|
|
||||||
static bool initialize(const tp::ModuleManifest*) {
|
|
||||||
initializeCallStackCapture();
|
|
||||||
// std::srand(std::time(nullptr));
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void deinitialize(const tp::ModuleManifest*) {
|
|
||||||
deinitializeCallStackCapture();
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace tp {
|
namespace tp {
|
||||||
|
|
||||||
void memSetVal(void* p, uhalni byteSize, uint1 val) {
|
void memSetVal(void* p, uhalni byteSize, uint1 val) {
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,3 @@ namespace tp {
|
||||||
#else
|
#else
|
||||||
#define DEBUG_BREAK(expr) ()
|
#define DEBUG_BREAK(expr) ()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define SWITCH_NO_DEF \
|
|
||||||
default: \
|
|
||||||
{ \
|
|
||||||
FAIL("No Default Case Possible"); \
|
|
||||||
}
|
|
||||||
|
|
@ -13,8 +13,7 @@ Many modules were intentionally developed to gain a better understanding of a to
|
||||||
For more information on some modules see TODO and STATUS
|
For more information on some modules see TODO and STATUS
|
||||||
|
|
||||||
# **Building**
|
# **Building**
|
||||||
|
Check git actions if some libraries are missing. <br>
|
||||||
On Linux with clang with some libraries installed. See workflow in git actions.
|
|
||||||
|
|
||||||
To build and debug on windows clone svn repository (https://svn.riouxsvn.com/moduleswindowsl) alongside this repo and check WINDOWS_LIBRARIES option in cmake
|
To build and debug on windows clone svn repository (https://svn.riouxsvn.com/moduleswindowsl) alongside this repo and check WINDOWS_LIBRARIES option in cmake
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,6 @@ add_library(${PROJECT_NAME} STATIC ${SOURCES} ${HEADERS})
|
||||||
target_include_directories(${PROJECT_NAME} PUBLIC ./public/)
|
target_include_directories(${PROJECT_NAME} PUBLIC ./public/)
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC Math Graphics Imgui)
|
target_link_libraries(${PROJECT_NAME} PUBLIC Math Graphics Imgui)
|
||||||
|
|
||||||
### -------------------------- Tests -------------------------- ###
|
|
||||||
enable_testing()
|
|
||||||
file(GLOB TEST_SOURCES "./tests/*.cpp")
|
|
||||||
add_executable(Test${PROJECT_NAME} ${TEST_SOURCES})
|
|
||||||
target_link_libraries(Test${PROJECT_NAME} ${PROJECT_NAME} UnitTest++)
|
|
||||||
add_test(NAME Test${PROJECT_NAME} COMMAND Test${PROJECT_NAME})
|
|
||||||
|
|
||||||
### -------------------------- Applications -------------------------- ###
|
### -------------------------- Applications -------------------------- ###
|
||||||
|
|
||||||
add_executable(ExampleGui examples/Entry.cpp)
|
add_executable(ExampleGui examples/Entry.cpp)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
|
|
||||||
#include "UnitTest++/UnitTest++.h"
|
|
||||||
|
|
||||||
TEST(NO_TESTS) { CHECK(false); }
|
|
||||||
|
|
||||||
int main() { return UnitTest::RunAllTests(); }
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue