14
14
fail-fast : false
15
15
matrix :
16
16
os : [ubuntu-latest, macOS-latest, windows-latest]
17
- ghc : ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.5']
17
+ ghc : ['8.0.2', '8.2.2', '8.4.4', '8.6.5', '8.8.4', '8.10.7', '9.0.2', '9.2.5', '9.4.4' ]
18
18
cabal : ['3.6.2.0']
19
19
include :
20
- - os : ubuntu-latest
21
- ghc : ' HEAD'
22
- cabal : 3.6.2.0
23
20
- os : ubuntu-latest
24
21
ghc : ' recommended'
25
22
- os : ubuntu-latest
@@ -55,29 +52,23 @@ jobs:
55
52
- uses : actions/checkout@v2
56
53
57
54
- name : Install dependencies (Ubuntu)
58
- if : runner.os == " Linux"
55
+ if : runner.os == ' Linux'
59
56
run : |
60
- apt-get -y update
61
- apt-get -y install libtinfo5 libtinfo6 libncurses5 libncurses6
57
+ sudo apt-get -y update
58
+ sudo apt-get -y install libtinfo5 libtinfo6 libncurses5 libncurses6
62
59
63
60
- name : Install ghc/cabal
64
61
run : |
65
62
set -eux
66
- if [ "${{ matrix.ghc }}" == 'HEAD' ] ; then
67
- ghcup install ghc -u 'https://gitlab.haskell.org/api/v4/projects/1/jobs/artifacts/master/raw/ghc-x86_64-linux-deb10-unreg-validate.tar.xz?job=x86_64-linux-deb10-unreg-validate' head
68
- ghcup set ghc head
69
- else
70
- ghcup install ghc ${{ matrix.ghc }}
71
- ghcup set ghc ${{ matrix.ghc }}
72
- fi
73
- ghcup install cabal ${{ matrix.cabal }}
63
+ ghcup install ghc --set ${{ matrix.ghc }}
64
+ ghcup install cabal --set ${{ matrix.cabal }}
74
65
shell : bash
75
66
76
67
- name : Build
77
68
run : |
78
69
set -eux
79
- [ "${{ matrix.ghc }}" == 'HEAD' ] ||
80
- [ "${{ matrix.ghc }}" == 'recommended' ] ||
70
+ [ -e ~/.ghcup/env ] && source ~/.ghcup/env
71
+ [ "${{ matrix.ghc }}" == 'recommended' ] ||
81
72
[ "${{ matrix.ghc }}" == 'latest' ] ||
82
73
[ "$(ghc --numeric-version)" = "${{ matrix.ghc }}" ]
83
74
cabal update
@@ -114,11 +105,13 @@ jobs:
114
105
githubToken : ${{ github.token }}
115
106
install : |
116
107
apt-get update -y
117
- apt-get install -y ghc libghc-quickcheck2-dev cpphs git make
108
+ apt-get install -y ghc cabal-install libghc-quickcheck2-dev cpphs git make
118
109
run : |
119
- ghc --version
120
- ghc --make -o Main tests/filepath-tests/Test.hs -itests/ -itests/filepath-tests/ +RTS -s
121
- ./Main +RTS -s
110
+ cabal update
111
+ cabal test
112
+ cabal haddock
113
+ cabal check
114
+ cabal sdist
122
115
123
116
emulated-i386 :
124
117
runs-on : ubuntu-latest
@@ -128,12 +121,14 @@ jobs:
128
121
- name : install
129
122
run : |
130
123
apt-get update -y
131
- apt-get install -y ghc libghc-quickcheck2-dev cpphs git make
124
+ apt-get install -y ghc cabal-install libghc-quickcheck2-dev cpphs git make
132
125
shell : bash
133
126
- uses : actions/checkout@v1
134
127
- name : test
135
128
run : |
136
- ghc --version
137
- ghc --make -o Main tests/filepath-tests/Test.hs -itests/ -itests/filepath-tests/ +RTS -s
138
- ./Main +RTS -s
129
+ cabal update
130
+ cabal test
131
+ cabal haddock
132
+ cabal check
133
+ cabal sdist
139
134
shell : bash
0 commit comments