diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 16e5de5a7d..748be47637 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -63,9 +63,8 @@ jobs: # Pin the benchmark to core 0 and run it at elevated priority. - name: Benchmark run: | - export PWD=$(pwd) - sudo nice -n -20 taskset -c 0 sudo -i -u "$USER" -D "$PWD" \ - cargo +$TOOLCHAIN bench --features ci,bench | tee output.txt + sudo nice -n -20 taskset -c 0 sudo -i -u "$USER" sh -c \ + "cd $(pwd) && cargo +$TOOLCHAIN bench --features ci,bench | tee output.txt" # Enable turboboost, hyperthreading and use powersave governor - name: Restore machine