Skip to content

Commit

Permalink
ci: reuse env if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Aug 13, 2024
1 parent deb6086 commit 7261f5c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
issue_comment:
types: [created]
workflow_dispatch:
inputs:
reuse:
description: "reuse: Reuse existing benchmark server if possible"
required: false
default: true
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -39,7 +45,7 @@ jobs:
with:
dotnet-version: "8.0"
environment: benchmark
benchmark-name: "magiconion-${{ github.event.issue.number || github.run_number }}"
benchmark-name: "magiconion-${{ github.event.issue.number || (inputs.inputs && 'wf' || github.run_number) }}"
benchmark-timeout: 20 # 10min (env prepare) + 5min (clone & benchmark) + 5min (spare)
client-benchmark-script-path: ".github/scripts/run-benchmark-client.sh"
client-benchmark-script-args: "--args \"-u http://${BENCHMARK_SERVER_NAME}:5000 -s CI --channels ${{ matrix.channels }} --streams ${{ matrix.streams }}\" --tags \"${{ matrix.tags }}\""
Expand Down

0 comments on commit 7261f5c

Please sign in to comment.