Skip to content

Commit d25a793

Browse files
committed
CI: add bounds checking job
1 parent 3a4fd05 commit d25a793

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/bounds-checking.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: bounds-checking
2+
on:
3+
- push
4+
- pull_request
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
bounds-checking:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: haskell-actions/setup@v2
16+
id: setup-haskell-cabal
17+
with:
18+
ghc-version: 'latest'
19+
- name: Update cabal package database
20+
run: cabal update
21+
- uses: actions/cache@v4
22+
name: Cache cabal stuff
23+
with:
24+
path: |
25+
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
26+
dist-newstyle
27+
key: ${{ runner.os }}-latest
28+
- name: Test
29+
run: cabal test --ghc-options='-fcheck-prim-bounds -fno-ignore-asserts'

0 commit comments

Comments
 (0)