[Chore] (github): CI tests

This commit is contained in:
2025-07-19 22:59:45 +08:00
parent 16697b8c2b
commit 8a9340749d
2 changed files with 32 additions and 1 deletions
+31
View File
@@ -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
+1 -1
View File
@@ -31,4 +31,4 @@ include(GoogleTest)
gtest_discover_tests(SanityTest)
add_subdirectory(Buffer)
add_subdirectory(Program)
#add_subdirectory(Program)