-
Notifications
You must be signed in to change notification settings - Fork 67
executable file
·55 lines (52 loc) · 1.45 KB
/
tests.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
name: Tests
on:
pull_request:
push:
branches:
- master
jobs:
stack:
name: Stack
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
#- ubuntu-latest
- macos-latest
#- windows-latest
resolver:
# Missing some packages now
#- "--resolver nightly"
- lts-18.16 # Win32 issue
- lts-16
stack-yaml:
- stack.yaml
- stack-new-time.yaml
exclude:
- resolver: lts-16
stack-yaml: stack-new-time.yaml
- os: windows-latest
stack-yaml: stack-new-time.yaml
steps:
- name: Clone project
uses: actions/checkout@v2
- name: Install LLVM 12
run: |
brew install llvm@12
echo "$(brew --prefix)/opt/llvm/bin" >> "${GITHUB_PATH}"
echo LDFLAGS="-L$(brew --prefix)/opt/llvm/lib" >> "${GITHUB_ENV}"
echo CPPFLAGS="-I$(brew --prefix)/opt/llvm/include" >> "${GITHUB_ENV}"
- name: Setup Haskell
uses: haskell-actions/[email protected]
with:
enable-stack: true
stack-version: 'latest'
stack-no-global: true
cabal-update: false
- name: Build and run tests
shell: bash
run: |
set -ex
stack --version
stack test --fast --no-terminal --stack-yaml=${{ matrix.stack-yaml }} --resolver=${{ matrix.resolver }}