diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..93b10124 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Test + +on: + push: + branches: [ Feat/Rewriting ] + +jobs: + test: + runs-on: ubuntu-latest + env: + TEST_ROOT: ${{github.workspace}}/MobileGL/MG_Test + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + with: + submodules: true + + - uses: lukka/get-cmake@latest + + - name: Configure CMake + working-directory: ${{env.TEST_ROOT}} + run: cmake -S . -B build-test + + - name: Build + working-directory: ${{env.TEST_ROOT}}/build-test + run: cmake --build . -j${nproc} + + - name: Test + working-directory: ${{env.TEST_ROOT}}/build-test + run: ctest \ No newline at end of file diff --git a/MobileGL/MG_Test/CMakeLists.txt b/MobileGL/MG_Test/CMakeLists.txt index d0f6bdd1..e7ee702e 100644 --- a/MobileGL/MG_Test/CMakeLists.txt +++ b/MobileGL/MG_Test/CMakeLists.txt @@ -31,4 +31,4 @@ include(GoogleTest) gtest_discover_tests(SanityTest) add_subdirectory(Buffer) -add_subdirectory(Program) +#add_subdirectory(Program)