benchmark: Switch to benchmark-action repo

This makes sure we don't depend on the Roblox/ org actions; the
necessary changes have been upstreamed a while ago.

Also make it easier to experiment by restricting the push to builds from
master, and clean up job naming.
This commit is contained in:
Arseny Kapoulkine 2023-10-24 11:55:39 -07:00
parent 87d955d5eb
commit 324c2cb0ba

View File

@ -12,13 +12,7 @@ on:
jobs: jobs:
callgrind: callgrind:
strategy: runs-on: ubuntu-22.04
matrix:
os: [ubuntu-22.04]
benchResultsRepo:
- { name: "luau-lang/benchmark-data", branch: "main" }
runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout Luau repository - name: Checkout Luau repository
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -85,13 +79,13 @@ jobs:
- name: Checkout benchmark results - name: Checkout benchmark results
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: ${{ matrix.benchResultsRepo.name }} repository: luau-lang/benchmark-data
ref: ${{ matrix.benchResultsRepo.branch }} ref: main
token: ${{ secrets.BENCH_GITHUB_TOKEN }} token: ${{ secrets.BENCH_GITHUB_TOKEN }}
path: "./gh-pages" path: "./gh-pages"
- name: Store results (bench) - name: Store results (bench)
uses: Roblox/rhysd-github-action-benchmark@v-luau uses: benchmark-action/github-action-benchmark@v1
with: with:
name: callgrind clang name: callgrind clang
tool: "benchmarkluau" tool: "benchmarkluau"
@ -99,7 +93,7 @@ jobs:
external-data-json-path: ./gh-pages/bench.json external-data-json-path: ./gh-pages/bench.json
- name: Store results (bench-codegen) - name: Store results (bench-codegen)
uses: Roblox/rhysd-github-action-benchmark@v-luau uses: benchmark-action/github-action-benchmark@v1
with: with:
name: callgrind codegen name: callgrind codegen
tool: "benchmarkluau" tool: "benchmarkluau"
@ -107,7 +101,7 @@ jobs:
external-data-json-path: ./gh-pages/bench-codegen.json external-data-json-path: ./gh-pages/bench-codegen.json
- name: Store results (bench-gcc) - name: Store results (bench-gcc)
uses: Roblox/rhysd-github-action-benchmark@v-luau uses: benchmark-action/github-action-benchmark@v1
with: with:
name: callgrind gcc name: callgrind gcc
tool: "benchmarkluau" tool: "benchmarkluau"
@ -115,7 +109,7 @@ jobs:
external-data-json-path: ./gh-pages/bench-gcc.json external-data-json-path: ./gh-pages/bench-gcc.json
- name: Store results (analyze) - name: Store results (analyze)
uses: Roblox/rhysd-github-action-benchmark@v-luau uses: benchmark-action/github-action-benchmark@v1
with: with:
name: luau-analyze name: luau-analyze
tool: "benchmarkluau" tool: "benchmarkluau"
@ -123,7 +117,7 @@ jobs:
external-data-json-path: ./gh-pages/analyze.json external-data-json-path: ./gh-pages/analyze.json
- name: Store results (compile) - name: Store results (compile)
uses: Roblox/rhysd-github-action-benchmark@v-luau uses: benchmark-action/github-action-benchmark@v1
with: with:
name: luau-compile name: luau-compile
tool: "benchmarkluau" tool: "benchmarkluau"
@ -131,7 +125,7 @@ jobs:
external-data-json-path: ./gh-pages/compile.json external-data-json-path: ./gh-pages/compile.json
- name: Push benchmark results - name: Push benchmark results
if: github.event_name == 'push' if: github.event_name == 'push' && github.ref_name == 'master'
run: | run: |
echo "Pushing benchmark results..." echo "Pushing benchmark results..."
cd gh-pages cd gh-pages