Skip to content

Commit 66fe89d

Browse files
committed
wip
1 parent 53413af commit 66fe89d

File tree

3 files changed

+54
-4
lines changed

3 files changed

+54
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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%'

nix/outputs.nix

+1-4
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,13 @@ let
8585

8686
non-profiled-shells = rec {
8787
default = ghc96;
88+
profiled = mkShell project.projectVariants.profiled;
8889
ghc810 = mkShell project.projectVariants.ghc810;
8990
ghc96 = mkShell project.projectVariants.ghc96;
9091
ghc98 = mkShell project.projectVariants.ghc98;
9192
ghc910 = mkShell project.projectVariants.ghc910;
9293
};
9394

94-
devShells =
95-
(non-profiled-shells) //
96-
{ profiled = mkShell project.projectVariants.profiled; };
97-
9895
nested-ci-jobs = {
9996
"x86_64-linux" =
10097
(project-variants-hydra-jobs) //
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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+

0 commit comments

Comments
 (0)