Skip to content

Commit 091897b

Browse files
fix: dont run bencher in walltime
1 parent 564bccd commit 091897b

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,11 @@ jobs:
141141
- codspeed-divan-compat-examples
142142
- codspeed-criterion-compat
143143
mode:
144-
- walltime
144+
- memory
145145
- instrumentation
146+
include:
147+
- package: codspeed-criterion-compat
148+
features: async_futures
146149
runs-on: ubuntu-latest
147150
env:
148151
CODSPEED_RUNNER_MODE: ${{ matrix.mode }}
@@ -158,16 +161,12 @@ jobs:
158161

159162
- run: cargo install --path crates/cargo-codspeed --locked
160163

161-
- name: Remove .cargo/config.toml to not force instrumentation mode
162-
run: rm -f .cargo/config.toml
163-
164164
- run: |
165-
if [ "${{ matrix.package }}" = "codspeed-criterion-compat" ]; then
166-
cargo codspeed build -p ${{ matrix.package }} --features async_futures
167-
else
168-
cargo codspeed build -p ${{ matrix.package }}
169-
fi
165+
# Remove the cargo config else it forces instrumentation mode
166+
rm -f .cargo/config.toml
167+
cargo codspeed build -p ${{ matrix.package }} ${{ matrix.features && format('--features {0}', matrix.features) || '' }}
170168
169+
# TODO: Dont merge this
171170
- name: Install memtrack (temp until runner is released)
172171
run: curl --proto '=https' --tlsv1.2 -LsSf https://github.com/CodSpeedHQ/runner/releases/download/memtrack-v1.0.1-alpha.3/memtrack-installer.sh | sh
173172

0 commit comments

Comments
 (0)