mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Chore] (github): CI tests
This commit is contained in:
@@ -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
|
||||||
@@ -31,4 +31,4 @@ include(GoogleTest)
|
|||||||
gtest_discover_tests(SanityTest)
|
gtest_discover_tests(SanityTest)
|
||||||
|
|
||||||
add_subdirectory(Buffer)
|
add_subdirectory(Buffer)
|
||||||
add_subdirectory(Program)
|
#add_subdirectory(Program)
|
||||||
|
|||||||
Reference in New Issue
Block a user