mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 20:28:32 +09:00
[Refactor] (buildsystem, 3rdparty): link test and benchmark to MobileGL library
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user