-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (45 loc) · 1.29 KB
/
simple.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
name: Simple
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
native:
name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
ghc: ['8.10','9.0','9.2','9.4','9.6']
fail-fast: false
timeout-minutes:
60
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout
uses: actions/checkout@v3
- name: Set up Haskell
id: setup-haskell
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: latest
- name: Get precise GHC version
shell: bash
run: echo "GHC_VERSION=$(ghc --numeric-version)" >> "${GITHUB_ENV}"
- name: Cache
uses: actions/cache@v3
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ env.GHC_VERSION }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ env.GHC_VERSION }}-
- name: Build
run: cabal build all --enable-tests
- name: Test
run: cabal test all --enable-tests --test-show-details=direct