forked from o1-labs/o1js
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (62 loc) · 1.94 KB
/
process-perf-results.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: process perf results
on:
workflow_dispatch:
inputs:
commit_id:
description: 'Commit to read results from'
required: true
default: '5b13c202bbf6a196104ebb440678dd22037b6746'
#push:
# branches:
# - test-perf
permissions:
id-token: write
pages: write
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: Download a Build Artifact
uses: meta-introspector/action-download-artifact@v6
with:
workflow_search: true
commit: ${{ inputs.commit_id }}
skip_unpack: true
path: data
- name: run the report
run: docker compose up --build reporting-github
env:
WORKSPACE_DIR2: $GITHUB_WORKSPACE
WORKSPACE_DIR: $GITHUB_WORKSPACE
- name: run the report
run: docker compose up --build reporting-github
env:
WORKSPACE_DIR2: $GITHUB_WORKSPACE
WORKSPACE_DIR: $GITHUB_WORKSPACE
- name: Archive results
uses: meta-introspector/upload-artifact@v4
with:
name: results.tgz
path: perf-reporting/output/results.tgz
# reporting-github-1 | + ls -latr /app/perf-reporting/output/
- name: Setup Pages
uses: meta-introspector/configure-pages@v5
- name: Upload Artifact
uses: meta-introspector/upload-pages-artifact@v5
with:
# upload entire directory
path: 'perf-reporting/output'
- name: Deploy to GitHub Pages
id: deployment
uses: meta-introspector/deploy-pages@v3