Skip to content

Commit

Permalink
benchmark: Switch to benchmark-action repo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zeux committed Oct 24, 2023
1 parent 87d955d commit 324c2cb
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,7 @@ on:

jobs:
callgrind:
strategy:
matrix:
os: [ubuntu-22.04]
benchResultsRepo:
- { name: "luau-lang/benchmark-data", branch: "main" }

runs-on: ${{ matrix.os }}
runs-on: ubuntu-22.04
steps:
- name: Checkout Luau repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -85,53 +79,53 @@ jobs:
- name: Checkout benchmark results
uses: actions/checkout@v3
with:
repository: ${{ matrix.benchResultsRepo.name }}
ref: ${{ matrix.benchResultsRepo.branch }}
repository: luau-lang/benchmark-data
ref: main
token: ${{ secrets.BENCH_GITHUB_TOKEN }}
path: "./gh-pages"

- name: Store results (bench)
uses: Roblox/rhysd-github-action-benchmark@v-luau
uses: benchmark-action/github-action-benchmark@v1
with:
name: callgrind clang
tool: "benchmarkluau"
output-file-path: ./bench-output.txt
external-data-json-path: ./gh-pages/bench.json

- name: Store results (bench-codegen)
uses: Roblox/rhysd-github-action-benchmark@v-luau
uses: benchmark-action/github-action-benchmark@v1
with:
name: callgrind codegen
tool: "benchmarkluau"
output-file-path: ./bench-codegen-output.txt
external-data-json-path: ./gh-pages/bench-codegen.json

- name: Store results (bench-gcc)
uses: Roblox/rhysd-github-action-benchmark@v-luau
uses: benchmark-action/github-action-benchmark@v1
with:
name: callgrind gcc
tool: "benchmarkluau"
output-file-path: ./bench-gcc-output.txt
external-data-json-path: ./gh-pages/bench-gcc.json

- name: Store results (analyze)
uses: Roblox/rhysd-github-action-benchmark@v-luau
uses: benchmark-action/github-action-benchmark@v1
with:
name: luau-analyze
tool: "benchmarkluau"
output-file-path: ./analyze-output.txt
external-data-json-path: ./gh-pages/analyze.json

- name: Store results (compile)
uses: Roblox/rhysd-github-action-benchmark@v-luau
uses: benchmark-action/github-action-benchmark@v1
with:
name: luau-compile
tool: "benchmarkluau"
output-file-path: ./compile-output.txt
external-data-json-path: ./gh-pages/compile.json

- name: Push benchmark results
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref_name == 'master'
run: |
echo "Pushing benchmark results..."
cd gh-pages
Expand Down

0 comments on commit 324c2cb

Please sign in to comment.