Skip to content

Commit

Permalink
Add benchmarks to workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Apr 12, 2022
1 parent 2528294 commit c39fa1b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,22 @@ jobs:
matrix:
include:
- package: plutus-cbor
bench:
shouldRun: false
- package: plutus-merkle-tree
bench:
shouldRun: false
- package: hydra-tui
bench:
shouldRun: false
- package: hydra-node
bench:
shouldRun: true
name: tx-cost
options: '--output-directory $(pwd)/docs/benchmarks'
- package: hydra-cluster
bench:
shouldRun: true
name: hydra-cluster
options: '--scaling-factor 1'
steps:
Expand All @@ -38,6 +46,7 @@ jobs:
extra_nix_config: |
trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.nixos.org https://hydra.iohk.io https://iohk.cachix.org
max-jobs = 2
- name: Cachix cache of nix derivations
uses: cachix/cachix-action@v10
Expand Down Expand Up @@ -81,6 +90,11 @@ jobs:
run: |
nix-shell --arg withoutDevTools true --run 'cabal test ${{ matrix.package }}'
- name: Bench
if: ${{ matrix.bench.shouldRun }}
run: |
nix-shell --arg withoutDevTools true --run 'cabal bench ${{ matrix.bench.name }} --benchmark-options "${{ matrix.bench.options }}"'
# TODO vvv

# - name: Documentation (Haddock)
Expand Down

0 comments on commit c39fa1b

Please sign in to comment.