stackoverflow fix + cargo criterion fix

This commit is contained in:
Anton-4 2021-06-05 16:42:06 +02:00
parent 4beac319bc
commit 3acd9d1396
2 changed files with 5 additions and 2 deletions

View File

@ -20,5 +20,8 @@ jobs:
- name: Earthly version
run: earthly --version
- name: prune cache
run: earthly prune --reset
- name: install dependencies, build, cd cli, benchmark with criterion
run: ./ci/safe-earthly.sh +bench-roc

View File

@ -115,7 +115,7 @@ bench-roc:
FROM +copy-dirs-and-cache
ENV RUST_BACKTRACE=full
RUN cargo criterion -V
RUN ulimit -s unlimited # to prevent stack overflow errors for CFold
# ulimit -s unlimited to prevent stack overflow errors for CFold
RUN --privileged --mount=type=cache,target=$SCCACHE_DIR \
cd cli && cargo criterion && sccache --show-stats
ulimit -s unlimited && cd cli && cargo criterion && sccache --show-stats