Skip to content

Commit

Permalink
#55 show time
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Nov 6, 2024
1 parent b9f7023 commit f9063d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/make.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,14 @@ jobs:
path: ~/.m2/repository
key: ubuntu-jdk-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ubuntu-jdk-maven-
- run: make
- run: |
set -x
results=$(cat results.md)
SECONDS=0
make
results=$(
cat results.md
printf "\nThe entire test took %d seconds.\n" "${SECONDS}"
)
export results
perl -i -0777 -pe 's/(?<=<!-- benchmark_begin -->).*(?=<!-- benchmark_end -->)/\n$ENV{results}\n/gs;' README.md
url=${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
Expand Down

0 comments on commit f9063d8

Please sign in to comment.