forked from k-bx/protocol-buffers
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (53 loc) · 1.45 KB
/
haskell-ci.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
name: Haskell-CI
on:
- push
- pull_request
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-latest
container:
image: buildpack-deps:bionic
strategy:
matrix:
include:
- compiler: ghc-9.2.3
compilerVersion: 9.2.3
- compiler: ghc-9.0.2
compilerVersion: 9.0.2
- compiler: ghc-8.10.2
compilerVersion: 8.10.2
- compiler: ghc-8.8.4
compilerVersion: 8.8.4
- compiler: ghc-8.6.2
compilerVersion: 8.6.2
fail-fast: false
steps:
- name: apt
run: |
apt-get update
apt-get install --yes libgmp-dev protobuf-compiler
curl -sSL https://get.haskellstack.org/ | sh
- name: Cache ~/.stack
uses: actions/cache@v2
with:
path: |
~/.stack
key: stack-${{ runner.os }}-${{ matrix.compiler }}
- name: stack
run: |
mkdir -p ~/.stack
echo 'allow-different-user: yes' > ~/.stack/config.yaml
- name: checkout
uses: actions/checkout@v2
- name: tools
run: |
rm -f stack.yaml
cp -f "stack-$HCVER.yaml" stack.yaml
stack --no-terminal --skip-ghc-check setup
stack --no-terminal --skip-ghc-check install happy alex
env:
HCVER: ${{ matrix.compilerVersion }}
- name: test
run: |
make test