Skip to content

Commit 730bc4e

Browse files
committed
Pass arguments to reusable workflow. Correct defaults
1 parent 08c1eb8 commit 730bc4e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ on:
66
warmups:
77
description: 'number of warmups run before the actual benchmark'
88
type: number
9+
default: 5
910
required: false
1011
iterations:
1112
description: 'number of iterations in the benchmark'
1213
type: number
14+
default: 3
1315
required: false
1416
iteration-time:
1517
description: 'duraition of individual interation in benchmark'
1618
type: number
19+
default: 1
1720
required: false
1821
iteration-time-unit:
1922
description: 'timeunit for iteration-time parameter'
@@ -28,13 +31,25 @@ jobs:
2831
uses: ./.github/workflows/platform-benchmark.yml
2932
with:
3033
run-on: ubuntu-latest
34+
warmups: ${{ inputs.warmups }}
35+
iterations: ${{ inputs.iterations }}
36+
iteration-time: ${{ inputs.iteration-time }}
37+
iteration-time-unit: ${{ inputs.iteration-time-unit }}
3138
check-macos:
3239
uses: ./.github/workflows/platform-benchmark.yml
3340
with:
3441
run-on: macos-latest
3542
additional-task: "-x :benchmark:jvmBenchmark"
43+
warmups: ${{ inputs.warmups }}
44+
iterations: ${{ inputs.iterations }}
45+
iteration-time: ${{ inputs.iteration-time }}
46+
iteration-time-unit: ${{ inputs.iteration-time-unit }}
3647
check-windows:
3748
uses: ./.github/workflows/platform-benchmark.yml
3849
with:
3950
run-on: windows-latest
4051
additional-task: "-x :benchmark:jvmBenchmark"
52+
warmups: ${{ inputs.warmups }}
53+
iterations: ${{ inputs.iterations }}
54+
iteration-time: ${{ inputs.iteration-time }}
55+
iteration-time-unit: ${{ inputs.iteration-time-unit }}

.github/workflows/platform-benchmark.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ on:
1515
warmups:
1616
description: 'number of warmups run before the actual benchmark'
1717
type: number
18+
default: 5
1819
required: false
1920
iterations:
2021
description: 'number of iterations in the benchmark'
2122
type: number
23+
default: 3
2224
required: false
2325
iteration-time:
2426
description: 'duraition of individual interation in benchmark'
2527
type: number
28+
default: 1
2629
required: false
2730
iteration-time-unit:
2831
description: 'timeunit for iteration-time parameter'

0 commit comments

Comments
 (0)