run Perf Test and collect data #2
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 Perf Test and collect data | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "collect-perf" ] | |
pull_request: | |
branches: [ "collect-perf" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: meta-introspector/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Login to GHCR | |
uses: meta-introspector/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: pull the image | |
run: docker pull ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest | |
- name: run the Docker tests | |
run: docker compose up mina-local-network | |
- name: docker cp results | |
run: docker compose cp mina-local-network:/tmp/perf.data.tar.gz perf.data.tar.gz | |
- name: Archive results | |
uses: meta-introspector/upload-artifact@v4 | |
with: | |
name: perf.data.tar.gz | |
path: perf.data.tar.gz |