mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Benchmark
|
|
|
|
on:
|
|
push:
|
|
branches: [ dev ]
|
|
|
|
jobs:
|
|
benchmark:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
# BENCH_ROOT: ${{github.workspace}}/MobileGL/MG_Benchmark
|
|
BENCH_ROOT: ${{github.workspace}}
|
|
|
|
steps:
|
|
- name: Set Swap Space
|
|
uses: pierotofy/set-swap-space@master
|
|
with:
|
|
swap-size-gb: 32
|
|
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Get CMake
|
|
uses: lukka/get-cmake@latest
|
|
|
|
- name: Update glslang external sources
|
|
working-directory: ${{env.TEST_ROOT}}/3rdparty/glslang
|
|
run: python update_glslang_sources.py
|
|
|
|
- name: Configure CMake
|
|
working-directory: ${{env.BENCH_ROOT}}
|
|
run: cmake -S . -B build-bench -DCMAKE_BUILD_TYPE=Release -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON -DBENCHMARK_ENABLE_TESTING=OFF -DBUILD_TEST=OFF -DBUILD_BENCHMARK=ON
|
|
|
|
- name: Build
|
|
working-directory: ${{env.BENCH_ROOT}}/build-bench
|
|
run: cmake --build . --parallel 4
|
|
|
|
- name: Benchmark
|
|
working-directory: ${{env.BENCH_ROOT}}/build-bench
|
|
run: ctest -V -C Release |