Skip to content

Commit a9e468e

Browse files
ci: run forge benchmarks for reference and candidate
1 parent fcd6381 commit a9e468e

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

.github/workflows/forge-benchmarks.yaml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,36 @@ name: Forge benchmarks
33
on:
44
workflow_dispatch:
55
inputs:
6-
solx-version:
7-
description: 'Prebuilt `solx` version to use. For example: `0.1.0` without `v` prefix. If empty, `solx` will be built.'
6+
solx_candidate_branch:
7+
description: 'Solidity candidate branch to use. If empty, the current branch will be used.'
88
required: false
99
default: ''
10-
llvm-ref:
11-
description: 'LLVM reference branch to use. If empty, the current branch will be used.'
10+
solx_reference_branch:
11+
description: 'Solidity reference branch to use. If empty, the current branch will be used.'
12+
required: false
13+
default: ''
14+
compiler_llvm_candidate_branch:
15+
description: 'LLVM candidate branch to use. If empty, the current branch will be used.'
1216
required: false
1317
default: ''
1418
pull_request:
1519

20+
permissions:
21+
contents: read
22+
pull-requests: write
23+
24+
concurrency:
25+
group: ${{ github.repository_id }}-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
26+
cancel-in-progress: true
27+
1628
jobs:
1729
forge-benchmarks:
1830
uses: matter-labs/era-compiler-ci/.github/workflows/forge-benchmarks.yaml@v1
1931
secrets: inherit
2032
with:
21-
solx-version: ${{ inputs.solx-version || '' }}
22-
upload-reports: ${{ github.event_name == 'pull_request' }}
2333
print-markdown-tables: 'false' # do not print markdown tables to PRs
24-
llvm-ref: ${{ inputs.llvm-ref || github.ref }}
34+
upload-reports: ${{ github.event_name == 'pull_request' }}
35+
solx_candidate_branch: ${{ inputs.solx_candidate_branch || 'main' }}
36+
solx_reference_branch: ${{ inputs.solx_reference_branch || 'main' }}
37+
compiler_llvm_candidate_branch: ${{ inputs.compiler_llvm_candidate_branch || github.head_ref }}
38+
compiler-llvm-repo: ${{ github.event.pull_request.head.repo.full_name || 'matter-labs/era-compiler-llvm' }} # required to properly test forks

0 commit comments

Comments
 (0)