Skip to content

Commit

Permalink
feat(ci): Basic gh-action to run and publish benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jubnzv committed Aug 30, 2024
1 parent 41d1e4d commit 9d17204
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Run Benchmarks

on:
pull_request:
branches:
- main

jobs:
benchmark:
strategy:
fail-fast: false
matrix:
node-version: [18.x]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Misti
uses: actions/checkout@v2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"

- name: Install dependencies
run: yarn install

- name: Install Soufflé on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/souffle-archive-keyring.gpg] https://souffle-lang.github.io/ppa/ubuntu/ stable main" | sudo tee /etc/apt/sources.list.d/souffle.list
sudo apt update
sudo apt install souffle
- name: Run benchmarks: test/good/sample-jetton.tact
run: yarn benchmark test/good/sample-jetton.tact | tail -n +3 | head -n -1 > /tmp/benchmark-results.txt

- name: Publish benchmark results
uses: marocchino/sticky-pull-request-comment@v2
with:
path: /tmp/benchmark-results.txt

0 comments on commit 9d17204

Please sign in to comment.