-
Notifications
You must be signed in to change notification settings - Fork 67
executable file
·57 lines (54 loc) · 1.5 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
56
57
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 "/opt/homebrew/opt/llvm@12/bin:$PATH" >> "${GITHUB_PATH}"
echo LDFLAGS="-L/opt/homebrew/opt/llvm@12/lib" >> "${GITHUB_ENV}"
echo CPPFLAGS="-I/opt/homebrew/opt/llvm@12/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: |
echo $PATH
ls "/opt/homebrew/opt/llvm@12/*"
set -ex
stack --version
stack test --fast --no-terminal --stack-yaml=${{ matrix.stack-yaml }} --resolver=${{ matrix.resolver }}