Skip to content

Commit 75e9aba

Browse files
committed
Correct names for result directories
1 parent ba07e0e commit 75e9aba

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/benchmark.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ on:
3939

4040
env:
4141
REPORT_FORMAT: ${{ (github.event_name == 'push' || github.event_name == 'pull_request' ) && 'json' || 'csv' }}
42-
MAIN_BENCHMARK_TASK: ${{ github.event.pull_request.number && 'prValidationBenchmark' || 'benchmark' }}
42+
MAIN_BENCH_TASK: ${{ github.event.pull_request.number && 'prValidationBenchmark' || 'benchmark' }}
43+
MAIN_BENCH_RESULTS: ${{ github.event.pull_request.number && 'prValidation' || 'main' }}
44+
COMPARISON_BENCH_RESULTS: ${{ github.event.pull_request.number && 'prValidationComparison' || 'comparison' }}
4345

4446
concurrency:
4547
cancel-in-progress: true
@@ -90,7 +92,7 @@ jobs:
9092
gradle-version: wrapper
9193
- name: Run benchmarks
9294
run: >
93-
./gradlew --no-daemon :benchmark:${{ env.MAIN_BENCHMARK_TASK }} ${{ matrix.additional-task }}
95+
./gradlew --no-daemon :benchmark:${{ env.MAIN_BENCH_TASK }} ${{ matrix.additional-task }}
9496
-Pbenchmark_warmups=${{ inputs.warmups }}
9597
-Pbenchmark_iterations=${{ inputs.iterations }}
9698
-Pbenchmark_iteration_time=${{ inputs.iteration-time }}
@@ -125,13 +127,13 @@ jobs:
125127
uses: actions/upload-artifact@v4
126128
with:
127129
name: bench-result-${{ matrix.os }}
128-
path: ${{ env.BENCHMARK_RESULTS }}/main/**/*.json
130+
path: ${{ env.BENCHMARK_RESULTS }}/${{ env.MAIN_BENCH_RESULTS }}/**/*.json
129131
- name: Store comparison results as artifact
130132
if: env.REPORT_FORMAT == 'json' && matrix.os == 'ubuntu-latest'
131133
uses: actions/upload-artifact@v4
132134
with:
133135
name: bench-comparison-result-${{ matrix.os }}
134-
path: ${{ env.BENCHMARK_RESULTS }}/comparison/**/*.json
136+
path: ${{ env.BENCHMARK_RESULTS }}/${{ env.COMPARISON_BENCH_RESULTS }}/**/*.json
135137

136138
upload-benchmark-results:
137139
if: (github.event_name == 'push' || github.event_name == 'pull_request') && github.repository == 'OptimumCode/json-schema-validator'

0 commit comments

Comments
 (0)