From 0170493a1fd337f11009956e1ea9e5deab6ee2d0 Mon Sep 17 00:00:00 2001 From: Allan Jeremy Date: Wed, 25 May 2022 17:08:10 +0300 Subject: [PATCH] Refactoring: Abstracted benchmark results into matrix & switched to luau-lang results repo for results --- .github/workflows/benchmark-cachegrind.yml | 5 +++-- .github/workflows/benchmark.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/benchmark-cachegrind.yml b/.github/workflows/benchmark-cachegrind.yml index 1a48d6cf..3e81cc44 100644 --- a/.github/workflows/benchmark-cachegrind.yml +++ b/.github/workflows/benchmark-cachegrind.yml @@ -26,6 +26,7 @@ jobs: cachegrindTitle: "Performance", cachegrindIterCount: 20, } + benchResultsRepo: [{ name: "luau-lang/benchmark-data", branch: "main" }] runs-on: ${{ matrix.os }} steps: @@ -59,8 +60,8 @@ jobs: - name: Switch to & checkout benchmark results (gh-pages) repo uses: actions/checkout@v3 with: - repository: AllanJeremy/luau-benchmark-results - ref: "main" + repository: ${{ matrix.benchmarkResultsRepo.name }} + ref: ${{ matrix.benchmarkResultsRepo.branch }} token: "${{ secrets.BENCH_GITHUB_TOKEN }}" path: "./gh-pages" diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index f397160e..59571779 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -26,6 +26,7 @@ jobs: cachegrindTitle: "Performance", cachegrindIterCount: 20, } + benchResultsRepo: [{ name: "luau-lang/benchmark-data", branch: "main" }] runs-on: ${{ matrix.os }} steps: @@ -51,8 +52,8 @@ jobs: - name: Switch to & checkout benchmark results (gh-pages) repo uses: actions/checkout@v3 with: - repository: AllanJeremy/luau-benchmark-results - ref: "main" + repository: ${{ matrix.benchmarkResultsRepo.name }} + ref: ${{ matrix.benchmarkResultsRepo.branch }} path: "./gh-pages" #Run `github-action-benchmark` action