From a0f7028215c3d6e46e4fd3752c95fc3613753da3 Mon Sep 17 00:00:00 2001 From: Sergio Maria Matone Date: Thu, 26 Sep 2024 17:23:55 +0200 Subject: [PATCH] ci: adding support for differentiate github actions self-hosted runners (#2861) Supporting different labels for Self-hosted runners used for Benchmarks test --- .github/workflows/benchmark-publish.yml | 3 ++- .github/workflows/benchmark_template.yml | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmark-publish.yml b/.github/workflows/benchmark-publish.yml index 2c2979fcb8a..37fd452a163 100644 --- a/.github/workflows/benchmark-publish.yml +++ b/.github/workflows/benchmark-publish.yml @@ -11,4 +11,5 @@ jobs: secrets: inherit with: publish: true - test-flags: "-timeout 50m" \ No newline at end of file + test-flags: "-timeout 50m" + runner-additional-tag: "benchmarks-large" \ No newline at end of file diff --git a/.github/workflows/benchmark_template.yml b/.github/workflows/benchmark_template.yml index 642e06af9a6..f7988a463c6 100644 --- a/.github/workflows/benchmark_template.yml +++ b/.github/workflows/benchmark_template.yml @@ -8,6 +8,9 @@ on: test-flags: required: true type: string + runner-additional-tag: + type: string + default: benchmarks external-data-json-path: type: string @@ -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