Skip to content

Commit 7b11eae

Browse files
committed
Build PAPI based benchmarks on CI when possible
1 parent c44f00c commit 7b11eae

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ jobs:
7474
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
7575
key: ${{ runner.os }}-${{ matrix.ghc }}--${{ github.Shah }}
7676
# ----------------
77+
- name: "Install PAPI"
78+
run: |
79+
sudo apt-get install -y libpapi-dev
80+
echo FLAG_PAPI=-fBenchPAPI >> "$GITHUB_ENV"
81+
if: matrix.os == 'ubuntu-latest'
82+
# ----------------
7783
- name: Versions
7884
run: |
7985
cabal -V
@@ -97,7 +103,7 @@ jobs:
97103
run: |
98104
if [ "${{ matrix.skip-test }}" == "" ]; then FLAG_TEST=--enable-test; fi
99105
if [ "${{ matrix.skip-bench }}" == "" ]; then FLAG_BENCH=--enable-benchmarks; fi
100-
cabal configure $FLAG_TEST $FLAG_BENCH --flags='${{matrix.flags}}'
106+
cabal configure $FLAG_PAPI $FLAG_TEST $FLAG_BENCH --flags='${{matrix.flags}}'
101107
cabal build all --write-ghc-environment-files=always
102108
# ----------------
103109
- name: Test

0 commit comments

Comments
 (0)