git.iko.soy/typeable/pandoc
on master help sign in
linux CI: use ppa to install older ghc/cabal versions.
commit2d9d779fbe623cff77c5e93a87c0c33f120293de authorJohn MacFarlane <jgm@berkeley.edu> dateMon 15 Jun 2020, 10:02 (6 years ago) parentaa9bcce
1 file changed+14−3
.github/workflows/ci.yml+14−3
.github/workflows/ci.yml+14−3
@@ -44,11 +44,11 @@ jobs:
4444 matrix:
4545 versions:
4646 - ghc: '8.0.2'
47− cabal: '3.2'
47+ cabal: '2.4'
4848 - ghc: '8.2.2'
49− cabal: '3.2'
49+ cabal: '2.4'
5050 - ghc: '8.4.4'
51− cabal: '3.2'
51+ cabal: '2.4'
5252 - ghc: '8.6.5'
5353 cabal: '3.2'
5454 - ghc: '8.8.3'
@@ -58,6 +58,17 @@ jobs:
5858 steps:
5959 - uses: actions/checkout@v1
6060
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+
6172 # declare/restore cached things
6273 # caching doesn't work for scheduled runs yet
6374 # https://github.com/actions/cache/issues/63