mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fingers crossed, this works
This commit is contained in:
parent
e33f86fdbf
commit
7abb18c9ed
1 changed files with 10 additions and 18 deletions
28
.github/workflows/benchmark.yml
vendored
28
.github/workflows/benchmark.yml
vendored
|
@ -46,35 +46,28 @@ jobs:
|
||||||
run: python -m pip install requests && pwd
|
run: python -m pip install requests && pwd
|
||||||
|
|
||||||
- name: Run benchmark
|
- name: Run benchmark
|
||||||
run: python bench/bench.py | tee ${{ matrix.bench.script }}-output.txt
|
|
||||||
|
|
||||||
- name: Print benchmark storage location details
|
|
||||||
run: pwd && ls
|
|
||||||
|
|
||||||
- name: Create gh-pages dir in runner root dir & navigate to it
|
|
||||||
run: |
|
run: |
|
||||||
mkdir gh-pages
|
python bench/bench.py | tee ../${{ matrix.bench.script }}-output.txt
|
||||||
cd gh-pages
|
|
||||||
pwd && ls
|
|
||||||
|
|
||||||
# in gh-pages directory
|
- name: Navigate to root dir, create gh-pages dir then navigate into it
|
||||||
- name: Switch to benchmark results repo
|
run: cd .. && mkdir gh-pages && cd gh-pages
|
||||||
|
|
||||||
|
- name: Switch to & checkout gh-pages repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: AllanJeremy/luau-benchmark-results
|
repository: AllanJeremy/luau-benchmark-results
|
||||||
ref: "main"
|
ref: "main"
|
||||||
path: "gh-pages"
|
|
||||||
|
|
||||||
- name: Checkout gh-pages (benchmark results) source
|
- name: Checkout gh-pages
|
||||||
run: |
|
run: |
|
||||||
pwd && ls
|
|
||||||
git status
|
git status
|
||||||
git fetch --no-tags --depth=1 origin main
|
git fetch --no-tags --depth=1 origin main
|
||||||
git checkout main
|
git checkout main
|
||||||
git pull
|
git pull
|
||||||
git status
|
git status
|
||||||
|
|
||||||
- run: pwd && ls
|
- name: Navigate back to luau before checking out original repo
|
||||||
|
run: cd ..
|
||||||
|
|
||||||
#Run `github-action-benchmark` action
|
#Run `github-action-benchmark` action
|
||||||
- name: Store ${{ matrix.bench.title }} result
|
- name: Store ${{ matrix.bench.title }} result
|
||||||
|
@ -83,11 +76,10 @@ jobs:
|
||||||
name: ${{ matrix.bench.title }}
|
name: ${{ matrix.bench.title }}
|
||||||
tool: "benchmarkluau"
|
tool: "benchmarkluau"
|
||||||
# This should come from Luau repo
|
# This should come from Luau repo
|
||||||
output-file-path: ./${{ matrix.bench.script }}-output.txt
|
output-file-path: ../${{ matrix.bench.script }}-output.txt
|
||||||
|
|
||||||
# This should map to thebenchmark results repo
|
# This should map to thebenchmark results repo
|
||||||
external-data-json-path: ./gh-pages/dev/bench/data.json
|
external-data-json-path: ../gh-pages/dev/bench/data.json
|
||||||
|
|
||||||
alert-threshold: 150%
|
alert-threshold: 150%
|
||||||
fail-threshold: 200%
|
fail-threshold: 200%
|
||||||
fail-on-alert: true
|
fail-on-alert: true
|
||||||
|
|
Loading…
Add table
Reference in a new issue