General improvements (#8) #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run benchmarks | |
on: | |
pull_request: | |
workflow_dispatch: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- '.gitignore' | |
- '.github/**' | |
- 'LICENSE' | |
- 'bench.bat' | |
branches: | |
- master | |
jobs: | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install LuaJIT | |
run: sudo apt-get install -y luajit | |
- name: Setup PyPy | |
uses: actions/setup-python@v5 | |
with: | |
python-version: pypy3.10 | |
- name: Run benchmarks | |
run: node bench.js | |
- name: Commit new results | |
if: github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch' | |
uses: EndBug/add-and-commit@v7 | |
with: | |
add: README.md | |
message: 'chore: update results' | |
default_author: github_actions | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |