From 6966224681e2bebcd67c13b8a35793ad4e7ecb09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20B=C3=A4renz?= Date: Mon, 5 Feb 2024 09:48:17 +0100 Subject: [PATCH] Benchmarks on CI --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30e26dfbf..7d5563fc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,7 +83,7 @@ jobs: - name: Install dependencies # If we had an exact cache hit, the dependencies will be up to date. if: steps.cache.outputs.cache-hit != 'true' - run: cabal build all --enable-tests --only-dependencies + run: cabal build all --enable-tests --enable-benchmarks --only-dependencies # Cache dependencies already here, so that we do not have to rebuild them should the subsequent steps fail. - name: Save cached dependencies @@ -95,9 +95,11 @@ jobs: key: ${{ steps.cache.outputs.cache-primary-key }} - name: Cabal build packages - run: cabal build all --enable-tests -fdev + run: cabal build all --enable-tests --enable-benchmarks -fdev - name: Cabal test run: cabal test all --enable-tests --test-show-details=Always + - name: Cabal bench + run: cabal bench all build-stack: runs-on: ubuntu-latest