forked from Mudlet/Mudlet
-
Notifications
You must be signed in to change notification settings - Fork 1
222 lines (190 loc) · 7.66 KB
/
performance-analysis.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
name: "Performance analysis"
on:
push:
branches: development
workflow_dispatch:
jobs:
analyze:
name: ${{matrix.buildname}}
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- buildname: 'pi'
qt: '5.14.2'
triplet: arm64-linux
compiler: gcc_64
os: [ self-hosted, pi4 ]
env:
# APP_BUILD embeds the git sha which changes on every commit, throwing the cache off - ignore it
CCACHE_IGNOREOPTIONS: "-DAPP_BUILD=*"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
# run-vcpkg action does not run on arm64 (https://github.com/lukka/run-vcpkg/issues/152)
# so install dependencies manually
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential git liblua5.1-dev zlib1g-dev libhunspell-dev libpcre3-dev \
libzip-dev libboost-graph-dev libyajl-dev libpulse-dev lua-rex-pcre lua-filesystem lua-zip \
lua-sql-sqlite3 qtmultimedia5-dev qttools5-dev luarocks ccache libpugixml-dev cmake ninja-build -y
sudo luarocks install luautf8
sudo luarocks install lua-yajl YAJL_LIBDIR=`find /usr -name "libyajl.so" -printf '%h\n'` YAJL_INCDIR=/usr/include
- name: Set build info
run: |
${{github.workspace}}/CI/travis.validate_deployment.sh
${{github.workspace}}/CI/travis.set-build-info.sh
- name: Check ccache stats prior to build
if: runner.os == 'Linux' || runner.os == 'macOS'
run: ccache --zero-stats --show-stats
- name: Build Mudlet
run : |
WITH_UPDATER=NO WITH_3DMAPPER=NO cmake -DCMAKE_BUILD_TYPE=Release -S${{github.workspace}} -B${{github.workspace}}/build -G Ninja
cd ${{github.workspace}}/build
ninja -j $(expr `nproc` - 1)
tree
- name: Check ccache stats post build
if: runner.os == 'Linux' || runner.os == 'macOS'
run: ccache --show-stats
- name: Copy mudlet executable in place for executing display benchmark
run: cp ${{github.workspace}}/build/src/mudlet ${{github.workspace}}/src
shell: bash
- name: Remove Mudlet config directory
run: rm -rf $HOME/.config/mudlet
shell: bash
- name: Get commit date
id: commitdate
run: echo "::set-output name=date::$(TZ=UTC0 git show --quiet --date='format-local:%Y-%m-%dT%H:%M:%S' --format='%cd' ${{ env.GIT_COMMIT_SHA }})"
- name: Run display benchmark 1
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 1
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 2
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 2
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 3
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 3
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 4
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 4
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 5
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 5
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 6
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 6
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 7
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 7
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'
- name: Run display benchmark 8
timeout-minutes: 3
uses: GabrielBB/[email protected]
with:
run: ${{github.workspace}}/src/mudlet --profile "Mudlet self-test" --mirror
env:
AUTORUN_DISPLAY_BENCHMARK: 'true'
COMMIT_DATE: ${{ steps.commitdate.outputs.date }}
- name: Upload results 8
uses: Mudlet/gsheets-append-action@development
with:
GOOGLE_USER_MAIL: ${{secrets.GOOGLE_PERFORMANCE_EMAIL}}
GOOGLE_USER_KEY: ${{secrets.GOOGLE_PERFORMANCE_KEY}}
SPREADSHEET: '1Fm-CyDJFNQUeg9LYE845lzogq0eDMI0lXMOg-wU1-2g'
TABLE_START_CELL: 'A1'
DATA_ENV_NAME: 'PERFDATA'