Skip to content

Commit 5437d41

Browse files
committed
Test on CI that PAPI benchmark is buildable
1 parent 0981497 commit 5437d41

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ jobs:
6969
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
7070
key: ${{ runner.os }}-${{ matrix.ghc }}--${{ github.Shah }}-CACHE_V3
7171
# ----------------
72+
- name: "Install PAPI"
73+
run: |
74+
sudo apt-get install -y libpapi-dev
75+
echo FLAG_PAPI=-fBenchPAPI >> "$GITHUB_ENV"
76+
if: matrix.os == 'ubuntu-latest'
77+
# ----------------
7278
- name: Versions
7379
run: |
7480
cabal -V
@@ -91,8 +97,8 @@ jobs:
9197
# ----------------
9298
- name: Build
9399
run: |
94-
set -x
95-
cabal configure ${{ matrix.flags }} --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
100+
echo FLAG_PAPI=$FLAG_PAPI
101+
cabal configure ${{ matrix.flags }} $FLAG_PAPI --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
96102
cabal build all --write-ghc-environment-files=always
97103
# ----------------
98104
- name: Test

0 commit comments

Comments
 (0)