-
Notifications
You must be signed in to change notification settings - Fork 159
43 lines (41 loc) · 1.04 KB
/
windows_and_macOS.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
name: win-mac-ci
on:
- push
- pull_request
defaults:
run:
shell: bash
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['windows-latest', 'macOS-latest']
ghc: ['latest']
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
- name: Update cabal package database
run: cabal update
- uses: actions/cache@v3
name: Cache cabal stuff
with:
path: ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}
# We rebuild tests several times to avoid intermittent failures on Windows
# https://github.com/haskell/actions/issues/36
- name: Test
run: |
bld() { cabal build pkg:text:tests; }
bld || bld || bld
cabal test
- name: Haddock
run: cabal haddock
- name: SDist
run: cabal sdist
- name: Build bench
run: cabal bench --benchmark-option=-l