File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 - name : Build
4545 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
4646
47+ - name : Allow perf counters
48+ if : runner.os == 'Linux'
49+ run : echo 2 | sudo tee /proc/sys/kernel/perf_event_paranoid
50+
4751 - name : Test
4852 working-directory : ${{github.workspace}}/build
4953 run : ctest -C ${{env.BUILD_TYPE}} --output-on-failure
6973 - name : Build
7074 run : cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
7175
76+ - name : Allow perf counters
77+ run : echo 2 | sudo tee /proc/sys/kernel/perf_event_paranoid
78+
7279 - name : Test
7380 working-directory : ${{github.workspace}}/build
7481 run : ctest -C ${{env.BUILD_TYPE}} --output-on-failure
@@ -107,6 +114,9 @@ jobs:
107114 - name : Build
108115 run : cmake --build build
109116
117+ - name : Allow perf counters
118+ run : echo 2 | tee /proc/sys/kernel/perf_event_paranoid || true
119+
110120 - name : Test
111121 working-directory : build
112122 run : ctest --output-on-failure
You can’t perform that action at this time.
0 commit comments