File tree 3 files changed +54
-4
lines changed
3 files changed +54
-4
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 --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 85
85
86
86
non-profiled-shells = rec {
87
87
default = ghc96 ;
88
+ profiled = mkShell project . projectVariants . profiled ;
88
89
ghc810 = mkShell project . projectVariants . ghc810 ;
89
90
ghc96 = mkShell project . projectVariants . ghc96 ;
90
91
ghc98 = mkShell project . projectVariants . ghc98 ;
91
92
ghc910 = mkShell project . projectVariants . ghc910 ;
92
93
} ;
93
94
94
- devShells =
95
- ( non-profiled-shells ) //
96
- { profiled = mkShell project . projectVariants . profiled ; } ;
97
-
98
95
nested-ci-jobs = {
99
96
"x86_64-linux" =
100
97
( project-variants-hydra-jobs ) //
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