mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Refactor benchmark workflow to include runner selection logic
This commit is contained in:
parent
96775d28ee
commit
63f1a83c2d
16
.github/workflows/run-benchmarks.yml
vendored
16
.github/workflows/run-benchmarks.yml
vendored
@ -7,8 +7,22 @@ on:
|
||||
# - main
|
||||
|
||||
jobs:
|
||||
run-benchmarks:
|
||||
pick-runner:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
runner: ${{ steps.choose.outputs.use-runner }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- id: choose
|
||||
uses: ./.github/actions/runner-fallback
|
||||
with:
|
||||
primary-runner: "self-hosted,ubuntu-latest"
|
||||
fallback-runner: "ubuntu-latest"
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
run-benchmarks:
|
||||
needs: pick-runner
|
||||
runs-on: ${{ fromJson(needs.pick-runner.outputs.runner) }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
Loading…
x
Reference in New Issue
Block a user