[Refactor] (buildsystem, 3rdparty): link test and benchmark to MobileGL library

This commit is contained in:
2025-08-25 15:46:59 +08:00
parent a19c0a214a
commit 3513e3bffe
10 changed files with 259 additions and 198 deletions
+10 -3
View File
@@ -8,7 +8,8 @@ jobs:
test:
runs-on: ubuntu-latest
env:
TEST_ROOT: ${{github.workspace}}/MobileGL/MG_Test
# TEST_ROOT: ${{github.workspace}}/MobileGL/MG_Test
TEST_ROOT: ${{github.workspace}}
steps:
- name: Set Swap Space
@@ -40,8 +41,14 @@ jobs:
- name: Configure CMake
working-directory: ${{env.TEST_ROOT}}
run: cmake -S . -B build-test -DCMAKE_BUILD_TYPE=Debug
run: |
|
if [ "${{ secrets.ACTIONS_STEP_DEBUG }}" == "true" ]; then
cmake -S . -B build-test -DCMAKE_BUILD_TYPE=Debug -DBUILD_TEST=ON -DBUILD_BENCHMARK=OFF
else
cmake -S . -B build-test -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=ON -DBUILD_BENCHMARK=OFF
fi
- name: Build
working-directory: ${{env.TEST_ROOT}}/build-test
run: cmake --build . --parallel 4