55 push :
66 branches :
77 - master
8+ tags :
9+ - v*
810
911concurrency :
1012 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1113 cancel-in-progress : true
1214
13-
1415jobs :
1516 build_benchmark_ubuntu :
1617 name : Benchmarks
1718 runs-on : ubuntu-latest
1819
1920 steps :
20- - uses : actions/checkout@v4
21- - name : Install Dependencies
22- run : |
23- sudo apt update -qq
24- sudo apt install -qq -y build-essential ninja-build wget
25- wget https://github.com/jcelerier/cninja/releases/download/v3.7.6/cninja-v3.7.6-Linux.tar.gz
26- tar xaf cninja-*-Linux.tar.gz
27- sudo mv cninja "/usr/bin/"
28- rm *.tar.gz
21+ - uses : actions/checkout@v4
22+ - name : Install Dependencies
23+ run : |
24+ sudo apt update -qq
25+ sudo apt install -qq -y build-essential ninja-build wget
26+ wget https://github.com/jcelerier/cninja/releases/download/v3.7.6/cninja-v3.7.6-Linux.tar.gz
27+ tar xaf cninja-*-Linux.tar.gz
28+ sudo mv cninja "/usr/bin/"
29+ rm *.tar.gz
2930
30- - name : Build
31- run : |
32- echo $(variables.gitTag)
31+ - name : Build
32+ run : |
33+ echo $(variables.gitTag)
3334
34- git clone https://github.com/google/benchmark
35- git clone https://github.com/google/googletest.git benchmark/googletest
36- (
37- cd benchmark/
38- mkdir build
39- cd build/
40- cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=inst -DBUILD_SHARED_LIBS=OFF -DOSSIA_CI=1
41- ninja
42- ninja install
43- )
35+ git clone https://github.com/google/benchmark
36+ git clone https://github.com/google/googletest.git benchmark/googletest
37+ (
38+ cd benchmark/
39+ mkdir build
40+ cd build/
41+ cmake -GNinja .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=inst -DBUILD_SHARED_LIBS=OFF -DOSSIA_CI=1
42+ ninja
43+ ninja install
44+ )
4445
45- (
46- cninja ${GITHUB_WORKSPACE} static minimal benchmarks -- -DCMAKE_PREFIX_PATH=$PWD/benchmark/build/inst
47- mv build-* build
48- )
46+ (
47+ cninja ${GITHUB_WORKSPACE} static minimal benchmarks -- -DCMAKE_PREFIX_PATH=$PWD/benchmark/build/inst
48+ mv build-* build
49+ )
4950
50- - name : Archive Binary
51- uses : actions/upload-artifact@v4
52- with :
53- name : libossia-device-bench
54- path : build/tests/ossia_DeviceBenchmark
51+ - name : Archive Binary
52+ uses : actions/upload-artifact@v4
53+ with :
54+ name : libossia-device-bench
55+ path : build/tests/ossia_DeviceBenchmark
5556
5657 ubuntu_RunBenchmarks_selfhosted :
5758 needs : build_benchmark_ubuntu
5859 runs-on : ubuntu-latest
5960 steps :
60- # - name: 'Tune System Performance'
61- # run: curl http://$(StabilizerServer):7373/acquire # On stabilise la machine
62- - name : Download all workflow run artifacts
63- uses : actions/download-artifact@v4.1.7
64- - name : ' Run Benchmarks'
65- run : |
66- sudo apt-get update -qq
67- sudo apt-get install -qq libbenchmark-dev libbenchmark-tools
68- cp -rf libossia-device-bench/* .
69- mkdir results
70- chmod +x ossia_DeviceBenchmark
71- ./ossia_DeviceBenchmark
72- env :
73- BENCHMARK_BENCHMARK_FORMAT : ' json'
74- BENCHMARK_BENCHMARK_OUT : ' results/benchmarks-results.json'
75- BENCHMARK_FORMAT : ' json'
76- BENCHMARK_OUT : ' results/benchmarks-results.json'
61+ # - name: 'Tune System Performance'
62+ # run: curl http://$(StabilizerServer):7373/acquire # On stabilise la machine
63+ - name : Download all workflow run artifacts
64+ uses : actions/download-artifact@v4.1.7
65+ - name : " Run Benchmarks"
66+ run : |
67+ sudo apt-get update -qq
68+ sudo apt-get install -qq libbenchmark-dev libbenchmark-tools
69+ cp -rf libossia-device-bench/* .
70+ mkdir results
71+ chmod +x ossia_DeviceBenchmark
72+ ./ossia_DeviceBenchmark
73+ env :
74+ BENCHMARK_BENCHMARK_FORMAT : " json"
75+ BENCHMARK_BENCHMARK_OUT : " results/benchmarks-results.json"
76+ BENCHMARK_FORMAT : " json"
77+ BENCHMARK_OUT : " results/benchmarks-results.json"
7778
78- - name : Archive Results
79- uses : actions/upload-artifact@v4
80- with :
81- name : benchResults_selfhosted
82- path : results
79+ - name : Archive Results
80+ uses : actions/upload-artifact@v4
81+ with :
82+ name : benchResults_selfhosted
83+ path : results
8384
8485 # - name: 'Reset System Performance'
8586 # if: ${{ always() }}
8687 # run: curl http://$(StabilizerServer):7373/release
87-
0 commit comments