@@ -21,11 +21,11 @@ concurrency:
2121 cancel-in-progress : false
2222
2323env :
24- BENCHLEDGER_VERSION : " 0.3.3 "
24+ BENCHLEDGER_VERSION : " 0.5.0 "
2525 BENCH_PACKAGE_NAME : " ComponentLogging.jl"
2626 BENCH_PACKAGE_DESCRIPTION : " Benchmark history for ComponentLogging.jl"
2727 BENCH_PACKAGE_URL : " https://github.com/JuliaLogging/ComponentLogging.jl"
28- BENCH_BRANCH : *benchmark_branch
28+ BENCH_SOURCE_BRANCH : *benchmark_branch
2929
3030jobs :
3131 build-and-publish :
5050 - name : Set up Julia
5151 uses : julia-actions/setup-julia@v2
5252 with :
53- version : " 1 "
53+ version : " lts "
5454
5555 - name : Cache Julia packages
5656 uses : julia-actions/cache@v2
6464 BENCH_DB_PATH : ${{ github.workspace }}/gh-pages/benchmarks/data/benchledger.sqlite
6565 # BENCH_DB_PATH: ${{ github.workspace }}/benchmark/benchledger.sqlite (if database is not in page deploy branch)
6666 BENCH_NOTES : " GitHub Actions BenchLedger run"
67+ BENCH_SOURCE_BRANCH : ${{ github.ref_type == 'branch' && github.ref_name || '' }}
68+ BENCH_SOURCE_TAGS : ${{ github.ref_type == 'tag' && github.ref_name || '' }}
69+ BENCH_SOURCE_REVISION : ${{ github.sha }}
70+ BENCH_DATE : ${{ github.event.head_commit.timestamp || '' }}
71+ BENCH_RUN_METADATA : >-
72+ {"ci":{"provider":"GitHub Actions","workflow":${{ toJson(github.workflow) }},"job":${{ toJson(github.job) }},"run_id":${{ toJson(github.run_id) }},"run_attempt":${{ github.run_attempt }},"event":${{ toJson(github.event_name) }},"runner_name":${{ toJson(runner.name) }},"run_url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"}}}
6773 run : |
6874 mkdir -p "$(dirname "$BENCH_DB_PATH")"
6975 julia --project=benchmark benchmark/runbench.jl
@@ -131,7 +137,7 @@ jobs:
131137 "sha256": "${sha256}",
132138 "size_bytes": ${size_bytes},
133139 "packed_at": "${generated_at}",
134- "schema_version": 3 ,
140+ "schema_version": 4 ,
135141 "metadata_preview": {
136142 "name": "${BENCH_PACKAGE_NAME}",
137143 "project_url": "${BENCH_PACKAGE_URL}",
@@ -170,7 +176,7 @@ jobs:
170176 - name : Set up Julia
171177 uses : julia-actions/setup-julia@v2
172178 with :
173- version : " 1 "
179+ version : " lts "
174180
175181 - name : Cache Julia packages
176182 uses : julia-actions/cache@v2
@@ -209,9 +215,8 @@ jobs:
209215 commit="$(git -C "$HIST_WT" rev-parse HEAD)"
210216 date="$(git -C "$HIST_WT" show -s --format=%cI HEAD)"
211217
212- GITHUB_REF_TYPE=tag \
213- GITHUB_REF_NAME="$tag" \
214- GITHUB_SHA="$commit" \
218+ BENCH_SOURCE_TAGS="$tag" \
219+ BENCH_SOURCE_REVISION="$commit" \
215220 BENCH_DATE="$date" \
216221 BENCH_TARGET_PATH="$HIST_WT" \
217222 BENCH_DB_PATH="$DB" \
0 commit comments