-
Notifications
You must be signed in to change notification settings - Fork 191
67 lines (57 loc) · 1.84 KB
/
perf.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
66
67
name: PerformanceCheck
on:
workflow_dispatch:
# Don't run on every merge to main, because many merges
# may not even be vm related, but infra, or GH Actions
# push:
# branches:
# - main
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
EXPERIMENT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
CONTROL_BRANCH_NAME: 'main'
FIDELITY: 100
THROTTLE: 4
FORK_NAME: ${{ github.event.pull_request.head.repo.full_name }}
jobs:
master-krausest-comparison:
name: Glimmer Krausest Benchmark
runs-on: ubuntu-latest
timeout-minutes: 70
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: marceloprado/[email protected]
id: did-change
with:
paths: packages/
- uses: wyvox/action-setup-pnpm@v3
if: steps.did-change.outputs.changed == 'true'
with:
node-version: '22'
- name: RUN
if: steps.did-change.outputs.changed == 'true'
run: pnpm run benchmark:setup
- name: Remove unused artifacts
if: steps.did-change.outputs.changed == 'true'
run: rm -rf ./tracerbench-results/traces && rm -rf ./tracerbench-results/traces.zip
- name: Upload Tracerbench Artifacts
if: steps.did-change.outputs.changed == 'true' && (failure() || success())
uses: actions/upload-artifact@v3
with:
name: Trace Artifacts
path: tracerbench-results
- name: Write message
if: steps.did-change.outputs.changed == 'true'
uses: mshick/add-pr-comment@v2
with:
message-path: "tracerbench-results/msg.txt"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}