Skip to content

Commit

Permalink
Debug build error
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Feb 9, 2024
1 parent f55a0be commit f807455
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
# workflows: [CI]
# types: [completed]
env:
CARGO_PROFILE_BENCH_BUILD_OVERRIDE_DEBUG: true
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
TOOLCHAIN: nightly
Expand All @@ -29,6 +30,7 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: $TOOLCHAIN
components: rustfmt

- name: Use sccache
uses: mozilla-actions/[email protected]
Expand All @@ -47,8 +49,9 @@ jobs:
echo "$HOME/.cargo/bin"
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Checkout
- name: Checkout and build
uses: actions/checkout@v4
- run: cargo +$TOOLCHAIN bench --features ci,bench --no-run

# Disable turboboost, hyperthreading and use performance governor
- name: Prepare machine
Expand All @@ -60,7 +63,6 @@ jobs:
# Pin the benchmark to core 0 and run it at elevated priority.
- name: Benchmark
run: |
cargo +$TOOLCHAIN bench --features ci,bench --no-run
sudo nice -n -20 sudo -u "$USER" taskset -c 0 \
cargo +$TOOLCHAIN bench --features ci,bench | tee output.txt
Expand Down

0 comments on commit f807455

Please sign in to comment.