summaryrefslogtreecommitdiff
path: root/.github/workflows/main.yml
blob: 9253d6058fdd7cce78d72550a2d6b5f433551f08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: 'CI'
on: ['push']
jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest]
      
    name: ${{ matrix.os }}
    runs-on: $${{ matrix.os }}
    
    steps:
    - uses: 'actions/checkout@v1'
    - uses: 'mstksg/setup-stack@v1'
    - uses: 'actions/cache@v1'
      with:
        path: '~/.stack'
        key: "${{ runner.os }}-v3-stack-${{ hashFiles('stack.yaml.lock') }}"
        restore-keys: '${{ runner.os }}-v3-stack'
    - run: 'stack build --test'