Skip to content

Scores

Scores #91

Workflow file for this run

# Writes scores to the out/ directory
name: Scores
on:
schedule:
- cron: '0 0 */7 * *'
workflow_dispatch:
jobs:
benchmark:
runs-on: ubuntu-latest
strategy:
matrix:
lua-version: [5.1, 5.2, 5.3]
steps:
- uses: actions/checkout@v3
- name: Install Lua
run: |
sudo apt install lua${{ matrix.lua-version }}
- name: Run Benchmark
run: |
lua SimpleBench.lua > out/lua-${{ matrix.lua-version }}.log
- name: Pull and Push
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config pull.rebase true
git add .
git commit -m "ci: Add generated results (Lua ${{ matrix.lua-version }}) [ci skip]"
git pull
git push
benchmark-luau:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Unzip
run: |
sudo apt install unzip
- name: Download Luau
run: |
curl -L -i --output luau.zip https://github.com/Roblox/luau/releases/latest/download/luau-ubuntu.zip
- name: Unpack Luau
run: |
echo "unzip -o -d luau luau.zip; echo done" > extract.sh
chmod +x extract.sh
./extract.sh
rm extract.sh
- name: Run Benchmark
run: |
chmod +x luau/luau
luau/luau SimpleBench.lua > out/lua-luau.log
- name: Pull and Push
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git config pull.rebase true
git add .
git commit -m "ci: Add generated results (Luau) [ci skip]"
git pull
git push