sdl: add transport info #745
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: push | |
jobs: | |
build_benchmark_ubuntu: | |
name: Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
sudo apt update -qq | |
sudo apt install -qq -y build-essential ninja-build wget | |
wget https://github.com/jcelerier/cninja/releases/download/v3.7.6/cninja-v3.7.6-Linux.tar.gz | |
tar xaf cninja-*-Linux.tar.gz | |
sudo mv cninja "/usr/bin/" | |
rm *.tar.gz | |
- name: Build | |
run: | | |
echo $(variables.gitTag) | |
git clone https://github.com/google/benchmark | |
git clone https://github.com/google/googletest.git benchmark/googletest | |
( | |
cd benchmark/ | |
mkdir build | |
cd build/ | |
cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=inst -DBUILD_SHARED_LIBS=OFF -DOSSIA_CI=1 | |
ninja | |
ninja install | |
) | |
( | |
cninja ${GITHUB_WORKSPACE} static minimal benchmarks -- -DCMAKE_PREFIX_PATH=$PWD/benchmark/build/inst | |
mv build-* build | |
) | |
- name: Archive Binary | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libossia-device-bench | |
path: build/tests/ossia_DeviceBenchmark | |
ubuntu_RunBenchmarks_selfhosted: | |
needs: build_benchmark_ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
# - name: 'Tune System Performance' | |
# run: curl http://$(StabilizerServer):7373/acquire # On stabilise la machine | |
- name: Download all workflow run artifacts | |
uses: actions/[email protected] | |
- name: 'Run Benchmarks' | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq libbenchmark-dev libbenchmark-tools | |
cp -rf libossia-device-bench/* . | |
mkdir results | |
chmod +x ossia_DeviceBenchmark | |
./ossia_DeviceBenchmark | |
env: | |
BENCHMARK_BENCHMARK_FORMAT: 'json' | |
BENCHMARK_BENCHMARK_OUT: 'results/benchmarks-results.json' | |
BENCHMARK_FORMAT: 'json' | |
BENCHMARK_OUT: 'results/benchmarks-results.json' | |
- name: Archive Results | |
uses: actions/upload-artifact@v2 | |
with: | |
name: benchResults_selfhosted | |
path: results | |
# - name: 'Reset System Performance' | |
# if: ${{ always() }} | |
# run: curl http://$(StabilizerServer):7373/release | |