Skip to content

Commit d366e6e

Browse files
committed
ci: run CI on tags
1 parent 4b77025 commit d366e6e

File tree

11 files changed

+548
-527
lines changed

11 files changed

+548
-527
lines changed

.github/workflows/benchmarks.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,83 +5,83 @@ on:
55
push:
66
branches:
77
- master
8+
tags:
9+
- v*
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1113
cancel-in-progress: true
1214

13-
1415
jobs:
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-

.github/workflows/coverage.yml

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- master
8+
tags:
9+
- v*
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -14,39 +16,39 @@ jobs:
1416
build:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/checkout@v4
18-
- uses: ./.github/actions/latest-ubuntu-toolchain
19-
- name: Install Dependencies
20-
run: |
21-
sudo gem install coveralls-lcov
22-
23-
sudo apt-get install -yqq python3 python3-pip lcov build-essential gcovr
24-
sudo pip3 install --upgrade wheel setuptools
25-
sudo pip3 install git+https://github.com/rpgillespie6/fastcov.git
26-
27-
- name: Build
28-
run: |
29-
QT_ENV_SCRIPT=$(find /opt -name 'qt*-env.sh')
30-
set +e
31-
source $QT_ENV_SCRIPT
32-
set -e
33-
34-
cmake -B build -S ${GITHUB_WORKSPACE} \
35-
-DCMAKE_BUILD_TYPE=Debug \
36-
-DOSSIA_TESTING=1 \
37-
-DOSSIA_COVERAGE=1 \
38-
-DPORTAUDIO_ONLY_DYNAMIC=1 \
39-
-DOSSIA_PD=0 \
40-
-DOSSIA_QT=1 \
41-
-DOSSIA_C=1
42-
cmake --build build -- -j2
43-
cmake --build build --target ossia_coverage || true
44-
rm -rf **/*.o
45-
46-
find . -name '*.info'
47-
48-
- name: Coveralls
49-
uses: coverallsapp/github-action@master
50-
with:
51-
github-token: ${{ secrets.GITHUB_TOKEN }}
52-
path-to-lcov: ${{ github.workspace }}/build/coverage.info
19+
- uses: actions/checkout@v4
20+
- uses: ./.github/actions/latest-ubuntu-toolchain
21+
- name: Install Dependencies
22+
run: |
23+
sudo gem install coveralls-lcov
24+
25+
sudo apt-get install -yqq python3 python3-pip lcov build-essential gcovr
26+
sudo pip3 install --upgrade wheel setuptools
27+
sudo pip3 install git+https://github.com/rpgillespie6/fastcov.git
28+
29+
- name: Build
30+
run: |
31+
QT_ENV_SCRIPT=$(find /opt -name 'qt*-env.sh')
32+
set +e
33+
source $QT_ENV_SCRIPT
34+
set -e
35+
36+
cmake -B build -S ${GITHUB_WORKSPACE} \
37+
-DCMAKE_BUILD_TYPE=Debug \
38+
-DOSSIA_TESTING=1 \
39+
-DOSSIA_COVERAGE=1 \
40+
-DPORTAUDIO_ONLY_DYNAMIC=1 \
41+
-DOSSIA_PD=0 \
42+
-DOSSIA_QT=1 \
43+
-DOSSIA_C=1
44+
cmake --build build -- -j2
45+
cmake --build build --target ossia_coverage || true
46+
rm -rf **/*.o
47+
48+
find . -name '*.info'
49+
50+
- name: Coveralls
51+
uses: coverallsapp/github-action@master
52+
with:
53+
github-token: ${{ secrets.GITHUB_TOKEN }}
54+
path-to-lcov: ${{ github.workspace }}/build/coverage.info

.github/workflows/doc.yml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- master
8+
tags:
9+
- v*
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -14,21 +16,21 @@ jobs:
1416
build:
1517
runs-on: ubuntu-latest
1618
steps:
17-
- uses: actions/checkout@v4
18-
- name: Install Dependencies
19-
run: |
20-
sudo apt-get update -yqq
21-
sudo apt-get install -yqq doxygen doxygen-doc doxygen-gui graphviz
22-
- name: Build Documentation
23-
run: |
24-
cd docs/Doxygen
25-
doxygen > doxygen.log
26-
mkdir -p publish
27-
mv html publish
28-
- name: Deploy Documentation
29-
uses: peaceiris/actions-gh-pages@v3
30-
with:
31-
github_token: ${{ secrets.GITHUB_TOKEN }}
32-
publish_dir: docs/Doxygen/publish
33-
commit_message: 'Deploy code docs to GitHub Pages, Github Action id: $GITHUB_ACTION \nCommit: $GITHUB_SHA'
34-
force_orphan: true
19+
- uses: actions/checkout@v4
20+
- name: Install Dependencies
21+
run: |
22+
sudo apt-get update -yqq
23+
sudo apt-get install -yqq doxygen doxygen-doc doxygen-gui graphviz
24+
- name: Build Documentation
25+
run: |
26+
cd docs/Doxygen
27+
doxygen > doxygen.log
28+
mkdir -p publish
29+
mv html publish
30+
- name: Deploy Documentation
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: docs/Doxygen/publish
35+
commit_message: 'Deploy code docs to GitHub Pages, Github Action id: $GITHUB_ACTION \nCommit: $GITHUB_SHA'
36+
force_orphan: true

0 commit comments

Comments
 (0)