Skip to content

Commit

Permalink
Test on CI that PAPI benchmark is buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
Shimuuar committed Jan 13, 2024
1 parent 27a5994 commit edc9083
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}--${{ github.Shah }}-CACHE_V3
# ----------------
- name: "Install PAPI"
run: |
sudo apt-get install -y libpapi-dev
echo FLAG_PAPI=-fBenchPAPI >> "$GITHUB_ENV"
if: matrix.os == 'ubuntu-latest'
# ----------------
- name: Versions
run: |
cabal -V
Expand All @@ -89,7 +95,8 @@ jobs:
# ----------------
- name: Build
run: |
cabal configure --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
echo FLAG_PAPI=$FLAG_PAPI
cabal configure $FLAG_PAPI --haddock-all --enable-tests --enable-benchmarks --benchmark-option=-l
cabal build all --write-ghc-environment-files=always
# ----------------
- name: Test
Expand Down

0 comments on commit edc9083

Please sign in to comment.