File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " ƛ Plinth Plugin Benchmark"
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - master
8+ pull_request :
9+ branches :
10+ - ' release/*'
11+
12+ permissions :
13+ deployments : write
14+ contents : write
15+
16+ jobs :
17+ run :
18+ if : !always()
19+ name : Run
20+ runs-on : [self-hosted, plutus-benchmark]
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@main
24+
25+ - name : Run Benchmarks
26+ run : nix develop .#profiled --no-warn-dirty --accept-flake-config --command \
27+ bash ./scripts/run-plinth-plugin-benchmarks.sh
28+
29+ # We need this otherwise the next step will fail with:
30+ # `pre-commit` not found. Did you forget to activate your virtualenv?
31+ # This is because github-action-benchmark will call git commit outside nix develop.
32+ - name : Disable Git Hooks
33+ run : git config core.hooksPath no-hooks
34+
35+ - name : Deploy Results
36+ uses :
benchmark-action/[email protected] 37+ with :
38+ name : Plutus Benchmarks
39+ tool : ' customSmallerIsBetter'
40+ output-file-path : output.json
41+ github-token : ${{ secrets.GITHUB_TOKEN }}
42+ auto-push : true
43+ comment-on-alert : true
44+ alert-comment-cc-users : ' @IntersectMBO/plutus-core'
45+ alert-threshold : ' 105%'
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ cabal clean
6+ cabal update
7+ cabal build all --enable-profiling --enable-library-profiling
8+
You can’t perform that action at this time.
0 commit comments