Skip to content

Commit 0d151c8

Browse files
committed
Attempt to change paranoid value in github actions.
1 parent 5fd6835 commit 0d151c8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ jobs:
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
@@ -69,6 +73,9 @@ jobs:
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

0 commit comments

Comments
 (0)