Skip to content

Commit 3481acb

Browse files
hasufellBodigrim
authored andcommitted
Run benchmarks in CI
1 parent e4dda5b commit 3481acb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
cabal update
5353
cabal build --enable-tests --enable-benchmarks
5454
cabal test
55+
cabal bench
5556
cabal haddock
5657
cabal check
5758
cabal sdist
@@ -82,6 +83,7 @@ jobs:
8283
. ~/.ghcup/env
8384
cabal update
8485
cabal test
86+
cabal bench
8587
8688
# We use github.com/haskell self-hosted runners for ARM testing.
8789
# If they become unavailable in future, put ['armv7', 'aarch64']
@@ -105,13 +107,13 @@ jobs:
105107
uses: docker://hasufell/arm32v7-ubuntu-haskell:focal
106108
name: Run build (arm32v7 linux)
107109
with:
108-
args: sh -c "cabal update && ghcup install ghc --isolate=/usr --force 9.2.2 && cabal test -w ghc-9.2.2"
110+
args: sh -c "cabal update && ghcup install ghc --isolate=/usr --force 9.2.2 && cabal test -w ghc-9.2.2 && cabal bench -w ghc-9.2.2"
109111

110112
- if: matrix.arch == 'arm64v8'
111113
uses: docker://hasufell/arm64v8-ubuntu-haskell:focal
112114
name: Run build (arm64v8 linux)
113115
with:
114-
args: sh -c "cabal update && ghcup install ghc --isolate=/usr --force 9.2.2 && cabal test -w ghc-9.2.2"
116+
args: sh -c "cabal update && ghcup install ghc --isolate=/usr --force 9.2.2 && cabal test -w ghc-9.2.2 && cabal bench -w ghc-9.2.2"
115117

116118
darwin_arm:
117119
runs-on: ${{ matrix.os }}
@@ -143,5 +145,6 @@ jobs:
143145
. .github/scripts/env.sh
144146
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_INSTALL_NO_STACK=1 BOOTSTRAP_HASKELL_GHC_VERSION=${{ matrix.ghc }} BOOTSTRAP_HASKELL_ADJUST_BASHRC=yes sh
145147
cabal test
148+
cabal bench
146149
env:
147150
HOMEBREW_CHANGE_ARCH_TO_ARM: 1

0 commit comments

Comments
 (0)