Skip to content

Commit 7415732

Browse files
Fix no criterion folder error
1 parent 115aa7b commit 7415732

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ jobs:
6969
run: cargo doc --no-deps --workspace --all-features
7070

7171
- name: Run benchmarks
72-
run: cargo bench --all-features 2>&1 | tee bench-output.txt
72+
run: cargo bench -p graph 2>&1 | tee bench-output.txt
7373

7474
- name: Assemble site
7575
run: |
7676
mkdir -p site
7777
cp -r target/doc/. site/
78-
mkdir -p site/bench
79-
cp -r target/criterion/. site/bench/
78+
if [ -d target/criterion ]; then
79+
mkdir -p site/bench
80+
cp -r target/criterion/. site/bench/
81+
fi
8082
cat > site/index.html << 'HTML'
8183
<!DOCTYPE html>
8284
<html lang="en">

0 commit comments

Comments
 (0)