Skip to content

Commit 71c76ab

Browse files
Fix CodSpeed workflow: enable caching and limit build parallelism
1 parent 87d2ce0 commit 71c76ab

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/codspeed.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ permissions:
2727

2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
# Limit parallel compilation jobs to reduce peak memory usage.
31+
# The bench profile inherits from release (LTO + codegen-units=1),
32+
# which is very memory-intensive.
33+
CARGO_BUILD_JOBS: 2
3034

3135
jobs:
3236
codspeed:
@@ -38,7 +42,7 @@ jobs:
3842
- uses: moonrepo/setup-rust@v1
3943
with:
4044
bins: cargo-codspeed
41-
cache: false
45+
cache-target: release
4246

4347
- name: Build the benchmark targets
4448
run: cargo codspeed build -p moon_affected -p moon_workspace

0 commit comments

Comments
 (0)