-
Notifications
You must be signed in to change notification settings - Fork 127
61 lines (58 loc) · 1.68 KB
/
perf-statistic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Collect performance statistic
# on: [push, pull_request]
on:
schedule:
- cron: '0 12 */2 * *'
jobs:
ubuntu-gcc-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup environment
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-12 g++-12
sudo apt-get install cppcheck ninja-build
sudo apt-get install mpich libmpich* mpi* openmpi-bin
sudo apt-get install libomp-dev
sudo apt-get install valgrind
python3 -m pip install xlsxwriter
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.job }}
create-symlink: true
- name: CMake configure
run: >
cmake -S . -B build
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
-G Ninja -D USE_SEQ=ON -D USE_MPI=OFF -D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
-D USE_FUNC_TESTS=ON -D USE_PERF_TESTS=ON
-D CMAKE_BUILD_TYPE=RELEASE
env:
CC: gcc-12
CXX: g++-12
- name: Ninja build
run: |
cmake --build build
env:
CC: gcc-12
CXX: g++-12
- name: Check number tests
run: |
source scripts/run_num_test.sh
- name: Run perf tests
run: |
source scripts/generate_perf_results.sh
- name: Archive results
uses: montudor/action-zip@v1
with:
args: zip -qq -r perf-stat.zip build/perf_stat_dir
- name: Upload results
uses: actions/[email protected]
with:
name: perf-stat
path: perf-stat.zip