-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (46 loc) · 1.42 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: ci
on:
push:
branches:
- master
pull_request: {}
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
ghc: ['9.8.1']
steps:
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: 'latest'
- uses: actions/cache@v3
name: Cache cabal stuff
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- name: Build without sparse
run: |
cabal configure --enable-tests --enable-benchmarks --benchmark-option=-l -f-sparse --ghc-options='-fcheck-prim-bounds' --constraint 'vector +unsafechecks +internalchecks'
cabal build --write-ghc-environment-files=always
cabal test
cabal bench
cabal haddock
- name: Build with sparse
run: |
cabal configure --enable-tests --enable-benchmarks --benchmark-option=-l --ghc-options='-fcheck-prim-bounds' --constraint 'vector +unsafechecks +internalchecks'
cabal build --write-ghc-environment-files=always
cabal test
cabal bench
cabal haddock
- name: Sdist
run: cabal sdist