Skip to content

Commit

Permalink
ci: adding support for differentiate github actions self-hosted runne…
Browse files Browse the repository at this point in the history
…rs (#2861)

Supporting different labels for Self-hosted runners used for Benchmarks
test
  • Loading branch information
sw360cab authored Sep 26, 2024
1 parent df0d6b8 commit a0f7028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/benchmark-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
secrets: inherit
with:
publish: true
test-flags: "-timeout 50m"
test-flags: "-timeout 50m"
runner-additional-tag: "benchmarks-large"
5 changes: 4 additions & 1 deletion .github/workflows/benchmark_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
test-flags:
required: true
type: string
runner-additional-tag:
type: string
default: benchmarks
external-data-json-path:
type: string

Expand All @@ -23,7 +26,7 @@ env:
jobs:
benchmarks:
if: ${{ github.repository == 'gnolang/gno' }}
runs-on: [self-hosted, Linux, X64, benchmarks]
runs-on: [self-hosted, Linux, X64, "${{ inputs.runner-additional-tag }}"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit a0f7028

Please sign in to comment.