Skip to content

Commit 874abd6

Browse files
committed
feat: add memory profiling in CI
1 parent 9181bce commit 874abd6

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,43 @@ jobs:
194194
mode: walltime
195195
token: ${{ secrets.CODSPEED_TOKEN }}
196196

197+
198+
compat-integration-test-memory:
199+
runs-on: ubuntu-latest
200+
strategy:
201+
matrix:
202+
package:
203+
- codspeed-divan-compat
204+
- codspeed-divan-compat-examples
205+
- codspeed-criterion-compat
206+
steps:
207+
- uses: actions/checkout@v4
208+
with:
209+
submodules: true
210+
- uses: moonrepo/setup-rust@v1
211+
with:
212+
cache-target: release
213+
env:
214+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215+
216+
- run: cargo install --path crates/cargo-codspeed --locked
217+
218+
- run: |
219+
# Remove the cargo config else it forces instrumentation mode
220+
rm -f .cargo/config.toml
221+
cargo codspeed build -p ${{ matrix.package }} -m instrumentation
222+
223+
# TODO: Enable once we can upload it
224+
# - name: Run the benchmarks
225+
# uses: CodSpeedHQ/action@chore/runner-branch
226+
# env:
227+
# MY_ENV_VAR: "YES"
228+
# with:
229+
# runner-branch: cod-1670-runner-profile-memory-of-command
230+
# run: cargo codspeed run
231+
# mode: memory
232+
# token: ${{ secrets.CODSPEED_TOKEN }}
233+
197234
musl-build-check:
198235
strategy:
199236
matrix:

0 commit comments

Comments
 (0)