-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.71 KB
/
haskell.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
55
56
57
58
name: ms-graph-api-CI
on:
push:
branches: [ '*' ]
pull_request:
branches: [ master ]
defaults: { run: { shell: bash } }
jobs:
build:
name: stackage ${{ matrix.stack-resolver }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
stack-resolver: ['nightly-2023-06-17', 'lts-20.24']
steps:
- name: git checkout
uses: actions/checkout@v3
- name: Setup compiler, build and test
run: |
stack build --silent --resolver ${{ matrix.stack-resolver }}
stack test
# - name: Setup Haskell tools
# uses: haskell/actions/setup@v2
# with:
# ghc-version: ${{ matrix.ghc-version }}
# # cabal-version: 'latest'. Omitted, but defaults to 'latest'
# enable-stack: true
# stack-setup-ghc: true # Runs stack setup to install the specified GHC.
# stack-no-global: true # Prevents installing GHC and Cabal globally.
# stack-version: 'latest'
# - name: Stack build and test
# run: |
# stack build --system-ghc --no-install-ghc
# stack test
# ci:
# name: CI
# runs-on: ubuntu-latest # or macOS-latest, or windows-latest
# steps:
# - name: git checkout
# uses: actions/checkout@v3
# - name: Setup tools
# uses: haskell/actions/setup@v2
# with:
# ghc-version: '8.8.4' # Exact version of ghc to use
# # cabal-version: 'latest'. Omitted, but defaults to 'latest'
# enable-stack: true
# stack-version: 'latest'
# - name: stack build and test
# run: |
# stack build
# stack test