From a9729bcfda308f0d39564cf4631cfa8183674e4f Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 19 Jan 2024 06:35:54 -0500 Subject: [PATCH] cost-model-bench: Allow passing extra arguments (#5732) --- .github/workflows/cost-model-bench.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cost-model-bench.yml b/.github/workflows/cost-model-bench.yml index 5379567734b..1d6b4649ae8 100644 --- a/.github/workflows/cost-model-bench.yml +++ b/.github/workflows/cost-model-bench.yml @@ -3,6 +3,11 @@ name: "Cost model benchmark" on: workflow_dispatch: + inputs: + extraBenchArgs: + description: 'extra argument(s) to pass to the cost-model-budgeting-bench command' + default: '' + type: string jobs: bench: @@ -20,7 +25,7 @@ jobs: experimental-features = nix-command flakes - name: Run benchmarks - run: nix --accept-flake-config run .#cost-model-budgeting-bench -- --csv results.csv + run: nix --accept-flake-config run .#cost-model-budgeting-bench -- --csv results.csv ${{ inputs.extraBenchArgs }} - name: Upload results uses: actions/upload-artifact@v4