git.iko.soy/typeable/pandoc
on master help sign in
linux CI: use ppa to install older ghc/cabal versions.
2d9d779John MacFarlane
.github/workflows/ci.yml+14−3
@@ -44,11 +44,11 @@ jobs:
44 matrix:
44 matrix:
45 versions:
45 versions:
46 - ghc: '8.0.2'
46 - ghc: '8.0.2'
47− cabal: '3.2'
47+ cabal: '2.4'
48 - ghc: '8.2.2'
48 - ghc: '8.2.2'
49− cabal: '3.2'
49+ cabal: '2.4'
50 - ghc: '8.4.4'
50 - ghc: '8.4.4'
51− cabal: '3.2'
51+ cabal: '2.4'
52 - ghc: '8.6.5'
52 - ghc: '8.6.5'
53 cabal: '3.2'
53 cabal: '3.2'
54 - ghc: '8.8.3'
54 - ghc: '8.8.3'
@@ -58,6 +58,17 @@ jobs:
58 steps:
58 steps:
59 - uses: actions/checkout@v1
59 - uses: actions/checkout@v1
60
60
61+ # need to install older cabal/ghc versions from ppa repository
62+
63+ - name: Install recent cabal/ghc
64+ run: |
65+ if [[ ! -d /opt/ghc/${{ matrix.versions.ghc }} ]]
66+ then
67+ sudo add-apt-repository ppa:hvr/ghc
68+ sudo apt-get update
69+ sudo apt-get install ghc-${{ matrix.versions.ghc }} cabal-install-${{ matrix.versions.cabal }}
70+ fi
71+
61 # declare/restore cached things
72 # declare/restore cached things
62 # caching doesn't work for scheduled runs yet
73 # caching doesn't work for scheduled runs yet
63 # https://github.com/actions/cache/issues/63
74 # https://github.com/actions/cache/issues/63