-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (48 loc) · 1.45 KB
/
osxCI.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
48
49
50
51
52
53
54
on: [push, pull_request]
name: osx-ci
jobs:
build:
runs-on: macOS-latest
strategy:
matrix:
ghc: ['9.2', '9.4', '9.6']
cabal: ['3.8']
name: Haskell GHC ${{ matrix.ghc }}
env:
CONFIG: "--enable-tests --enable-benchmarks"
steps:
- name: CPU info
run: |
sysctl -n machdep.cpu.brand_string
sysctl -n machdep.cpu.features
sysctl -n machdep.cpu.leaf7_features
- name: remove xcode devtools
run: sudo rm -rf /Library/Developer/CommandLineTools/SDKs
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup Haskell
uses: haskell/actions/setup@v2
id: setup-haskell-cabal # <--- give it a name for later cache usage
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: |
cabal update
cabal freeze $CONFIG
- uses: actions/cache@v2
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 }}-
- run: |
cabal configure $CONFIG
cabal build $CONFIG
cabal test --test-show-details=direct
- run: |
cabal haddock
cabal check
cabal sdist